* restore fakesyn, newsyn shutdown-with-last-client behavior for testing etc.

git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@1481 29311d96-e01e-0410-9327-a35deaab8ce9
This commit is contained in:
sageweil 2007-07-06 21:37:29 +00:00
parent 79cfcb2a26
commit afe979e8fd
2 changed files with 12 additions and 0 deletions

View File

@ -79,6 +79,12 @@ int main(int argc, char **argv)
if (g_conf.clock_tare) g_clock.tare();
// stop on our own
g_conf.mon_stop_on_last_unmount = true;
g_conf.mon_stop_with_last_mds = true;
MonMap *monmap = new MonMap(g_conf.num_mon);
entity_addr_t a;
for (int i=0; i<g_conf.num_mon; i++) {

View File

@ -180,6 +180,12 @@ int main(int argc, char **argv)
parse_config_options(args);
parse_syn_options(args);
// stop on our own
g_conf.mon_stop_on_last_unmount = true;
g_conf.mon_stop_with_last_mds = true;
if (g_conf.kill_after)
g_timer.add_event_after(g_conf.kill_after, new C_Die);
if (g_conf.debug_after)