From: Changcheng Liu Date: Wed, 16 Sep 2020 01:50:54 +0000 (+0800) Subject: common: remove useless log_early check condition here X-Git-Tag: v14.2.22~22^2~8^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=bc1a8b2e141bce8c6de5deb4babb31695fe00185;p=ceph.git common: remove useless log_early check condition here The code logic shows that Log thread needs to be started even log_early is false. Signed-off-by: Changcheng Liu (cherry picked from commit 71d4178ff453fe3126258f11078048d51398886d) --- diff --git a/src/global/global_init.cc b/src/global/global_init.cc index f840c7d72fc6..3709f5a301c3 100644 --- a/src/global/global_init.cc +++ b/src/global/global_init.cc @@ -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(); }