]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
* restore fakesyn, newsyn shutdown-with-last-client behavior for testing etc.
authorsageweil <sageweil@29311d96-e01e-0410-9327-a35deaab8ce9>
Fri, 6 Jul 2007 21:37:29 +0000 (21:37 +0000)
committersageweil <sageweil@29311d96-e01e-0410-9327-a35deaab8ce9>
Fri, 6 Jul 2007 21:37:29 +0000 (21:37 +0000)
git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@1481 29311d96-e01e-0410-9327-a35deaab8ce9

trunk/ceph/fakesyn.cc
trunk/ceph/newsyn.cc

index 236c881675ddb5a59d150d4bbbe108ff261c79ea..75f8917d9cdc9f06a69060d9b5e70c80c745599c 100644 (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++) {
index b7b8d43042191a906784a9f2487a2ed55d47f4f4..5263d13184b817640ac8c2851053a8443613115f 100644 (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)