]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: fix a msg leak when OSD is stopping
authorKefu Chai <kchai@redhat.com>
Thu, 12 Mar 2015 03:10:03 +0000 (11:10 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 12 Mar 2015 04:13:12 +0000 (21:13 -0700)
Signed-off-by: Kefu Chai <kchai@redhat.com>
src/osd/OSD.h

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