From 45b4857e969338f3d89509d6b16021639b54a4da Mon Sep 17 00:00:00 2001 From: Maurice van Veen Date: Tue, 10 Dec 2024 15:57:28 +0100 Subject: [PATCH] Don't mark deletes, we don't recalculate in fs.removePerSubject anymore Signed-off-by: Maurice van Veen --- server/filestore.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/server/filestore.go b/server/filestore.go index 8ada19b7d7..8f2b341059 100644 --- a/server/filestore.go +++ b/server/filestore.go @@ -7387,9 +7387,6 @@ func (fs *fileStore) Compact(seq uint64) (uint64, error) { // Update fss smb.removeSeqPerSubject(sm.subj, mseq) fs.removePerSubject(sm.subj) - // Need to mark the sequence as deleted. Otherwise, recalculating ss.First - // for per-subject info would be able to find it still. - smb.dmap.Insert(mseq) } }