mds: make C_MDSInternalNoop::complete() delete 'this'

Fixes: http://tracker.ceph.com/issues/19501
Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
This commit is contained in:
Yan, Zheng 2017-04-05 21:29:10 +08:00
parent 8a2cf69ec4
commit 424e0c6744

View 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; }
};