Fix lock issue in filestore

Signed-off-by: Neil Twigg <neil@nats.io>
This commit is contained in:
Neil Twigg
2023-08-31 11:34:43 +01:00
parent ee4c04dec4
commit af2ff3d17d

View File

@@ -3509,7 +3509,7 @@ func (fs *fileStore) removeMsg(seq uint64, secure, viaLimits, needFSLock bool) (
}
cb := fs.scb
fs.mu.Unlock()
fsUnlock()
// Storage updates.
if cb != nil {