mirror of
https://github.com/ceph/ceph
synced 2025-01-02 00:52:22 +00:00
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:
parent
8a2cf69ec4
commit
424e0c6744
@ -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; }
|
||||
};
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user