From: Josh Durgin Date: Tue, 31 May 2011 22:48:21 +0000 (-0700) Subject: mds: allow mds to 'exit immediately' X-Git-Tag: v0.30~108^2~6 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=c01961ff4b712a12e25e437adceae264273d7428;p=ceph.git mds: allow mds to 'exit immediately' This is temporary until shutting down cleans up well. Signed-off-by: Josh Durgin --- diff --git a/src/mds/MDS.cc b/src/mds/MDS.cc index d2cdaaccd8442..810963fd397c3 100644 --- a/src/mds/MDS.cc +++ b/src/mds/MDS.cc @@ -725,7 +725,11 @@ void MDS::handle_command(MMonCommand *m) mdcache->dump_cache(); } else if (m->cmd[0] == "exit") { - suicide(); + if (m->cmd.size() > 1 && m->cmd[1] == "immediately") { + exit(0); + } else { + suicide(); + } } else if (m->cmd[0] == "session" && m->cmd[1] == "kill") { Session *session = sessionmap.get_session(entity_name_t(CEPH_ENTITY_TYPE_CLIENT,