Skip to content

Commit

Permalink
Merge pull request #14677: jewel: mds: C_MDSInternalNoop::complete do…
Browse files Browse the repository at this point in the history
…esn't free itself

Reviewed-by: Nathan Cutler <ncutler@suse.com>
  • Loading branch information
smithfarm committed Apr 27, 2017
2 parents 0a9ddc6 + 7347f11 commit 0fab783
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mds/MDSContext.h
Expand Up @@ -114,12 +114,12 @@ class MDSIOContextWrapper : public MDSIOContextBase
/**
* No-op for callers expecting MDSInternalContextBase
*/
class C_MDSInternalNoop : public MDSInternalContextBase
class C_MDSInternalNoop final : public MDSInternalContextBase
{
virtual MDSRank* get_mds() {assert(0);}
public:
void finish(int r) {}
void complete(int r) {}
void complete(int r) { delete this; }
};


Expand Down

0 comments on commit 0fab783

Please sign in to comment.