]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
common/common_init: start log from common_init_finish (if not yet started)
authorSage Weil <sage@redhat.com>
Wed, 3 Apr 2019 19:54:55 +0000 (14:54 -0500)
committerSage Weil <sage@redhat.com>
Thu, 4 Apr 2019 22:09:22 +0000 (17:09 -0500)
commitfc63fc5ee065efd07e2b6841abe34eaab6b35155
treeb78d86eb2f54db3436f2949666155e5a6c8298e8
parent5ab2f8d6aaf8cc3c9e303fb22bdcd3c3f7fe6959
common/common_init: start log from common_init_finish (if not yet started)

This captures any non-global_init users who created their cct but haven't
started up the log thread yet.  As long as common_init_finish() happens
after we have all of our config options (from the mon config or whatever),
we will log (or not log) to the right location(s).

Fixes a regression in cd6a5b9c40779956629803f222c365bdb291a169

Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit 30e49ae28b7a9cce6b489e1c866b35ac6ec8b70d)
src/common/common_init.cc
src/log/Log.h