]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
global: complain about parse errors after we open the log 7545/head
authorSage Weil <sage@redhat.com>
Thu, 3 Mar 2016 16:13:32 +0000 (11:13 -0500)
committerSage Weil <sage@redhat.com>
Thu, 3 Mar 2016 16:13:32 +0000 (11:13 -0500)
Signed-off-by: Sage Weil <sage@redhat.com>
src/global/global_init.cc
src/tools/ceph_conf.cc

index b6b57b85b81046af528b0128fdbf3568ee8211ae..8ac56c277f4c9ee61a863b7c55fe6bcba5890e4b 100644 (file)
@@ -256,6 +256,9 @@ void global_init(std::vector < const char * > *alt_def_args,
     }
   }
 
+  // Now we're ready to complain about config file parse errors
+  g_conf->complain_about_parse_errors(g_ceph_context);
+
   // test leak checking
   if (g_conf->debug_deliberately_leak_memory) {
     derr << "deliberately leaking some memory" << dendl;
index b67ea5c793ac88c478f22e5219462979dffcacf9..f047e7ca87cc79dec820df4287fdfafa0553e565 100644 (file)
@@ -154,6 +154,7 @@ int main(int argc, const char **argv)
   global_pre_init(NULL, args, CEPH_ENTITY_TYPE_CLIENT, CODE_ENVIRONMENT_DAEMON,
                  CINIT_FLAG_NO_DAEMON_ACTIONS);
   g_conf->apply_changes(NULL);
+  g_conf->complain_about_parse_errors(g_ceph_context);
 
   // do not common_init_finish(); do not start threads; do not do any of thing
   // wonky things the daemon whose conf we are examining would do (like initialize