mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-02 11:48:43 -07:00
[FIXED] We will panic since we unlock the mb in removeMsgBlock (#4571)
Signed-off-by: Derek Collison <derek@nats.io>
This commit is contained in:
@@ -1837,7 +1837,10 @@ func (fs *fileStore) recoverMsgs() error {
|
||||
}
|
||||
}
|
||||
for _, mb := range emptyBlks {
|
||||
// Need the mb lock here.
|
||||
mb.mu.Lock()
|
||||
fs.removeMsgBlock(mb)
|
||||
mb.mu.Unlock()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user