]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
common: remove useless log_early check condition here
authorChangcheng Liu <changcheng.liu@aliyun.com>
Wed, 16 Sep 2020 01:50:54 +0000 (09:50 +0800)
committerChangcheng Liu <changcheng.liu@aliyun.com>
Mon, 19 Oct 2020 06:23:51 +0000 (14:23 +0800)
The code logic shows that Log thread needs to be started even
log_early is false.

Signed-off-by: Changcheng Liu <changcheng.liu@aliyun.com>
src/global/global_init.cc

index abb3607a3712e11d25c02c4aa54d2aaafe57b2ac..b1dbc2aef0b2704c7d9de3e9fbcfa2585eb7a706 100644 (file)
@@ -169,11 +169,6 @@ void global_pre_init(
   // command line (as passed by caller)
   conf.parse_argv(args);
 
-  if (conf->log_early &&
-      !cct->_log->is_started()) {
-    cct->_log->start();
-  }
-
   if (!cct->_log->is_started()) {
     cct->_log->start();
   }