mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-02 03:38:42 -07:00
Make sure we unlock only if we did not acquire
Signed-off-by: Derek Collison <derek@nats.io>
This commit is contained in:
@@ -3509,7 +3509,9 @@ func (fs *fileStore) removeMsg(seq uint64, secure, viaLimits, needFSLock bool) (
|
||||
}
|
||||
|
||||
cb := fs.scb
|
||||
fsUnlock()
|
||||
if !needFSLock {
|
||||
fs.mu.Unlock()
|
||||
}
|
||||
|
||||
// Storage updates.
|
||||
if cb != nil {
|
||||
|
||||
Reference in New Issue
Block a user