osd: fix a msg leak when OSD is stopping

Signed-off-by: Kefu Chai <kchai@redhat.com>
This commit is contained in:
Kefu Chai 2015-03-12 11:10:03 +08:00
parent 3e1023a697
commit 052debd4f8

View File

@ -2175,6 +2175,7 @@ protected:
ThreadPool::TPHandle &handle) {
osd->osd_lock.Lock();
if (osd->is_stopping()) {
msg->put();
osd->osd_lock.Unlock();
return;
}