mirror of
https://github.com/ceph/ceph
synced 2025-01-18 17:12:29 +00:00
osd: fix a msg leak when OSD is stopping
Signed-off-by: Kefu Chai <kchai@redhat.com>
This commit is contained in:
parent
3e1023a697
commit
052debd4f8
@ -2175,6 +2175,7 @@ protected:
|
||||
ThreadPool::TPHandle &handle) {
|
||||
osd->osd_lock.Lock();
|
||||
if (osd->is_stopping()) {
|
||||
msg->put();
|
||||
osd->osd_lock.Unlock();
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user