From 0ec42f85f0b0060c29966d9e05496c377dced8a7 Mon Sep 17 00:00:00 2001 From: Derek Collison Date: Thu, 31 Aug 2023 18:51:34 -0700 Subject: [PATCH] Fix for merge issue that duplicated the index increment, causing snapshot tests to fail Signed-off-by: Derek Collison --- server/filestore.go | 1 - 1 file changed, 1 deletion(-) diff --git a/server/filestore.go b/server/filestore.go index 6d4bfec6..4d2f076f 100644 --- a/server/filestore.go +++ b/server/filestore.go @@ -1307,7 +1307,6 @@ func (mb *msgBlock) rebuildStateLocked() (*LostStreamData, []uint64, error) { seq = seq &^ tbit // Need to process this here and make sure we have accounted for this properly. tombstones = append(tombstones, seq) - index += rl if minTombstoneSeq == 0 || seq < minTombstoneSeq { minTombstoneSeq, minTombstoneTs = seq, ts }