mds: reorder suicide/shutdown a bit

* shutdown msgr last
* stop timer quickly, in case there are other events

Signed-off-by: Sage Weil <sage@inktank.com>
This commit is contained in:
Sage Weil 2013-07-20 08:46:57 -07:00
parent 318f3df718
commit ba5e357e4e

View File

@ -1628,19 +1628,18 @@ void MDS::suicide()
}
timer.cancel_all_events();
//timer.join();
timer.shutdown();
// shut down cache
mdcache->shutdown();
if (objecter->initialized)
objecter->shutdown_locked();
// shut down messenger
messenger->shutdown();
monc->shutdown();
timer.shutdown();
// shut down messenger
messenger->shutdown();
}
void MDS::respawn()