]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
common: reorder config option parsing vs defaults for daemonization
authorSage Weil <sage@newdream.net>
Mon, 23 Mar 2009 23:49:22 +0000 (16:49 -0700)
committerSage Weil <sage@newdream.net>
Mon, 23 Mar 2009 23:49:22 +0000 (16:49 -0700)
src/common/common_init.cc

index 017085178ffa264cd04c65f5f7da86cd7fdf92ef..34777aca1f9b4c2f3ba8e807020071886a4f4a21 100644 (file)
@@ -7,8 +7,6 @@ void common_init(std::vector<const char*>& args, const char *module_type, bool d
   tls_init();
   tls_get_val()->disable_assert = 0;
 
-  parse_startup_config_options(args, module_type);
-
   if (daemon) {
     cout << " ** WARNING: Ceph is still under heavy development, and is only suitable for **\n";
     cout << " **          testing and review.  Do not trust it with important data.       **" << std::endl;
@@ -21,6 +19,7 @@ void common_init(std::vector<const char*>& args, const char *module_type, bool d
     g_conf.logger = false;
   }
 
+  parse_startup_config_options(args, module_type);
   parse_config_options(args);
 
   // open log file?