Skip to content

Commit

Permalink
Don't mark deletes, we don't recalculate in fs.removePerSubject anymore
Browse files Browse the repository at this point in the history
Signed-off-by: Maurice van Veen <[email protected]>
  • Loading branch information
MauriceVanVeen authored and wallyqs committed Jan 8, 2025
1 parent e1cbffa commit 45b4857
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions server/filestore.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}

Expand Down

0 comments on commit 45b4857

Please sign in to comment.