Fix lock issue in filestore (#4458)

This should hopefully fix a panic on unlock of unlocked mutex in the
file store.

Signed-off-by: Neil Twigg <neil@nats.io>
This commit is contained in:
Derek Collison
2023-08-31 07:59:02 -07:00
committed by GitHub

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 {