From a87aa6bcf89a2b84893fa7c470a7a26b99d22770 Mon Sep 17 00:00:00 2001 From: Igor Fedotov Date: Fri, 18 May 2018 17:47:29 +0300 Subject: [PATCH] tool/ceph-bluestore-tool: avoid mon/config access when calling global_init This caused a permanent stuck on tool's startup. Signed-off-by: Igor Fedotov (cherry picked from commit fa65e7bf65bea514b66f56053d5cbf2c16045f4c) --- src/os/bluestore/bluestore_tool.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/os/bluestore/bluestore_tool.cc b/src/os/bluestore/bluestore_tool.cc index 71fef1e5aea..c307a6cd6f6 100644 --- a/src/os/bluestore/bluestore_tool.cc +++ b/src/os/bluestore/bluestore_tool.cc @@ -299,7 +299,9 @@ int main(int argc, char **argv) env_to_vec(args); auto cct = global_init(NULL, args, CEPH_ENTITY_TYPE_CLIENT, - CODE_ENVIRONMENT_UTILITY, 0); + CODE_ENVIRONMENT_UTILITY, + CINIT_FLAG_NO_DEFAULT_CONFIG_FILE); + common_init_finish(cct.get()); if (action == "fsck" || -- 2.47.3