diff options
author | John Spray <jspray@redhat.com> | 2017-04-12 15:28:11 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-12 15:28:11 +0200 |
commit | 015daa268622570982c30b0f36757d34dcb0aa3c (patch) | |
tree | ab29a1b17fc5533fd0304b0e25c85b2c8365ba21 /src/mds | |
parent | Merge pull request #14460 from dillaman/wip-qa-rbd-cli (diff) | |
parent | mds: make C_MDSInternalNoop::complete() delete 'this' (diff) | |
download | ceph-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.h | 4 |
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; } }; |