Skip to content

Commit

Permalink
[FIXED] Make sure order correct (#4455)
Browse files Browse the repository at this point in the history
Signed-off-by: Derek Collison <derek@nats.io>
  • Loading branch information
derekcollison committed Aug 30, 2023
2 parents 1de649a + abae240 commit 415bbb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/filestore.go
Expand Up @@ -3945,7 +3945,7 @@ func (mb *msgBlock) updateAccounting(seq uint64, ts int64, rl uint64) {
seq = seq &^ ebit
}

if mb.first.seq == 0 || mb.first.ts == 0 && seq >= mb.first.seq {
if (mb.first.seq == 0 || mb.first.ts == 0) && seq >= mb.first.seq {
mb.first.seq = seq
mb.first.ts = ts
}
Expand Down

0 comments on commit 415bbb2

Please sign in to comment.