Skip to content

Commit

Permalink
mds: always delete MDS
Browse files Browse the repository at this point in the history
Previous is_stopping check no longer makes sense (and
actually was pretty bogus anyway as it would avoid
doing clean destruction of a standby daemon)

Signed-off-by: John Spray <[email protected]>
  • Loading branch information
John Spray committed Jul 28, 2015
1 parent 07afc2e commit 7222020
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/ceph_mds.cc
Original file line number Diff line number Diff line change
Expand Up @@ -236,10 +236,7 @@ int main(int argc, const char **argv)

pidfile_remove();

// only delete if it was a clean shutdown (to aid memory leak
// detection, etc.). don't bother if it was a suicide.
if (mds->is_stopped())
delete mds;
delete mds;

g_ceph_context->put();

Expand Down

0 comments on commit 7222020

Please sign in to comment.