]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: make C_MDSInternalNoop::complete() delete 'this' 14347/head
authorYan, Zheng <zyan@redhat.com>
Wed, 5 Apr 2017 13:29:10 +0000 (21:29 +0800)
committerYan, Zheng <zyan@redhat.com>
Wed, 5 Apr 2017 13:29:10 +0000 (21:29 +0800)
Fixes: http://tracker.ceph.com/issues/19501
Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
src/mds/MDSContext.h

index ca48ad4a151c5fa5d9ca705c397f7b6b07a22a10..11bde1b4fac8183b4b1a70258c1299443d78b04d 100644 (file)
@@ -131,12 +131,12 @@ public:
 /**
  * No-op for callers expecting MDSInternalContextBase
  */
-class C_MDSInternalNoop : public MDSInternalContextBase
+class C_MDSInternalNoop final : public MDSInternalContextBase
 {
   MDSRank* get_mds() override {ceph_abort();}
 public:
   void finish(int r) override {}
-  void complete(int r) override {}
+  void complete(int r) override { delete this; }
 };