Skip to content

Commit

Permalink
[IMPROVED] Also reset clseq to avoid possible immediate sequence mism…
Browse files Browse the repository at this point in the history
…atch (#4366)

Signed-off-by: Derek Collison <derek@nats.io>
  • Loading branch information
derekcollison committed Aug 3, 2023
2 parents d522f46 + cbe85c8 commit 087e147
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/stream.go
Expand Up @@ -842,7 +842,7 @@ func (mset *stream) clearCLFS() uint64 {
mset.mu.Lock()
defer mset.mu.Unlock()
clfs := mset.clfs
mset.clfs = 0
mset.clfs, mset.clseq = 0, 0
return clfs
}

Expand Down

0 comments on commit 087e147

Please sign in to comment.