]> git-server-git.apps.pok.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)
committerIlya Dryomov <idryomov@gmail.com>
Thu, 1 Apr 2021 17:07:43 +0000 (19:07 +0200)
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>
(cherry picked from commit 71d4178ff453fe3126258f11078048d51398886d)

src/global/global_init.cc

index f840c7d72fc6a363fdfcead5657aa4cbab869d2a..3709f5a301c30c91d03e80aa0f77de8cee5c607f 100644 (file)
@@ -145,11 +145,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();
   }