]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mon: fix indentation
authorLoic Dachary <loic@dachary.org>
Sun, 29 Dec 2013 11:24:48 +0000 (12:24 +0100)
committerLoic Dachary <loic@dachary.org>
Tue, 31 Dec 2013 12:46:38 +0000 (13:46 +0100)
Signed-off-by: Loic Dachary <loic@dachary.org>
src/ceph_mon.cc

index 78a2fa611e4c7581731e9947ae3bf9599c20fe28..863bce38b8a5eb319a825ca4be30cc68c13f7d69 100644 (file)
@@ -326,16 +326,16 @@ int main(int argc, const char **argv)
   // screwing us over
   Preforker prefork;
   if (!(flags & CINIT_FLAG_NO_DAEMON_ACTIONS)) {
-  if (g_conf->daemonize) {
-    global_init_prefork(g_ceph_context, 0);
-    prefork.prefork();
-    if (prefork.is_parent()) {
-      return prefork.parent_wait();
+    if (g_conf->daemonize) {
+      global_init_prefork(g_ceph_context, 0);
+      prefork.prefork();
+      if (prefork.is_parent()) {
+       return prefork.parent_wait();
+      }
+      global_init_postfork(g_ceph_context, 0);
     }
-    global_init_postfork(g_ceph_context, 0);
-  }
-  common_init_finish(g_ceph_context);
-  global_init_chdir(g_ceph_context);
+    common_init_finish(g_ceph_context);
+    global_init_chdir(g_ceph_context);
   }
 
   MonitorDBStore *store = new MonitorDBStore(g_conf->mon_data);