From abae24086c2eb5434297ab4308d421e27c6fafd1 Mon Sep 17 00:00:00 2001 From: Derek Collison Date: Wed, 30 Aug 2023 16:13:56 -0700 Subject: [PATCH] Make sure order correct Signed-off-by: Derek Collison --- server/filestore.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/filestore.go b/server/filestore.go index b95294bec37..6d071e93bc4 100644 --- a/server/filestore.go +++ b/server/filestore.go @@ -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 }