mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-02 03:38:42 -07:00
[IMPROVED] Also reset clseq to avoid possible immediate sequence mismatch (#4366)
Signed-off-by: Derek Collison <derek@nats.io>
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user