From 4a8a0ac63175afecfd22df9252d2b556420ff846 Mon Sep 17 00:00:00 2001 From: Jason Dillaman Date: Tue, 2 Apr 2019 16:34:56 -0400 Subject: [PATCH] test/librados_test_stub: ensure the log flusher thread is started Recent changes merged in cd6a5b9c40779956629803f222c365bdb291a169 resulted in the logger flusher thread never being started for librados_test_stub-derived unit tests. Signed-off-by: Jason Dillaman --- src/test/librados_test_stub/LibradosTestStub.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/test/librados_test_stub/LibradosTestStub.cc b/src/test/librados_test_stub/LibradosTestStub.cc index e8053b0762e..f82d5130d5a 100644 --- a/src/test/librados_test_stub/LibradosTestStub.cc +++ b/src/test/librados_test_stub/LibradosTestStub.cc @@ -5,11 +5,13 @@ #include "include/rados/librados.hpp" #include "include/stringify.h" #include "common/ceph_argparse.h" +#include "common/ceph_context.h" #include "common/common_init.h" #include "common/config.h" #include "common/debug.h" #include "common/snap_types.h" #include "librados/AioCompletionImpl.h" +#include "log/Log.h" #include "test/librados_test_stub/TestClassHandler.h" #include "test/librados_test_stub/TestIoCtxImpl.h" #include "test/librados_test_stub/TestRadosClient.h" @@ -104,6 +106,7 @@ librados::TestRadosClient *create_rados_client() { CephContext *cct = common_preinit(iparams, CODE_ENVIRONMENT_LIBRARY, 0); cct->_conf.parse_env(cct->get_module_type()); cct->_conf.apply_changes(nullptr); + cct->_log->start(); auto rados_client = librados_test_stub::get_cluster()->create_rados_client(cct); -- 2.47.3