]> 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:13:53 +0000 (19:13 +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 d1dc4c5790a6149cd55d8f81b5be72e5298e828d..d1bfe396d494339b6a1088f5cb84caafb60f9820 100644 (file)
@@ -149,11 +149,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();
   }