summaryrefslogtreecommitdiffstats
path: root/src/mds
diff options
context:
space:
mode:
authorJohn Spray <jspray@redhat.com>2017-04-12 15:28:11 +0200
committerGitHub <noreply@github.com>2017-04-12 15:28:11 +0200
commit015daa268622570982c30b0f36757d34dcb0aa3c (patch)
treeab29a1b17fc5533fd0304b0e25c85b2c8365ba21 /src/mds
parentMerge pull request #14460 from dillaman/wip-qa-rbd-cli (diff)
parentmds: make C_MDSInternalNoop::complete() delete 'this' (diff)
downloadceph-015daa268622570982c30b0f36757d34dcb0aa3c.tar.xz
ceph-015daa268622570982c30b0f36757d34dcb0aa3c.zip
Merge pull request #14347 from ukernel/wip-19501
mds: make C_MDSInternalNoop::complete() delete 'this' Reviewed-by: John Spray <john.spray@redhat.com>
Diffstat (limited to 'src/mds')
-rw-r--r--src/mds/MDSContext.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mds/MDSContext.h b/src/mds/MDSContext.h
index ca48ad4a151..11bde1b4fac 100644
--- a/src/mds/MDSContext.h
+++ b/src/mds/MDSContext.h
@@ -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; }
};