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: v16.1.0~817^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=71d4178ff453fe3126258f11078048d51398886d;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 --- diff --git a/src/global/global_init.cc b/src/global/global_init.cc index abb3607a3712..b1dbc2aef0b2 100644 --- a/src/global/global_init.cc +++ b/src/global/global_init.cc @@ -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(); }