]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-conf: use global_pre_init to avoid starting logging 1567/head
authorSage Weil <sage@inktank.com>
Sun, 30 Mar 2014 04:52:09 +0000 (21:52 -0700)
committerSage Weil <sage@inktank.com>
Sun, 30 Mar 2014 05:00:47 +0000 (22:00 -0700)
This avoids starting up logging, which is not appropriate when we are
examining the config state and not actually starting up the entity in
question.

Fixes: #7849
Signed-off-by: Sage Weil <sage@inktank.com>
src/tools/ceph_conf.cc

index 14045f9f857445e7571cd84f4724474acd292b99..09bbc561149f29c658d688e404a06614cc7f2720 100644 (file)
@@ -158,8 +158,8 @@ int main(int argc, const char **argv)
   env_to_vec(args);
   vector<const char*> orig_args = args;
 
-  global_init(NULL, args, CEPH_ENTITY_TYPE_CLIENT, CODE_ENVIRONMENT_DAEMON,
-             CINIT_FLAG_NO_DAEMON_ACTIONS);
+  global_pre_init(NULL, args, CEPH_ENTITY_TYPE_CLIENT, CODE_ENVIRONMENT_DAEMON,
+                 CINIT_FLAG_NO_DAEMON_ACTIONS);
 
   // 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