]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: fix leak of MDSCacheObject::waiting 22307/head
authorYan, Zheng <zyan@redhat.com>
Wed, 30 May 2018 03:23:25 +0000 (11:23 +0800)
committerYan, Zheng <zyan@redhat.com>
Wed, 30 May 2018 03:24:16 +0000 (11:24 +0800)
Fixes: http://tracker.ceph.com/issues/24289
Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
src/mds/MDSCacheObject.h

index bab2c7de843d7302d091f7441119881aab12c8b4..147ee133472166d108e72eb9c9c15f08274d16e1 100644 (file)
@@ -367,7 +367,7 @@ protected:
     }
     if (waiting->empty()) {
       put(PIN_WAITER);
-      waiting.release();
+      waiting.reset();
     }
   }
   void finish_waiting(uint64_t mask, int result = 0);