From: Igor Fedotov Date: Fri, 18 May 2018 14:47:29 +0000 (+0300) Subject: tool/ceph-bluestore-tool: avoid mon/config access when calling global_init X-Git-Tag: v12.2.11~23^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=69612b13e1ab03dd7ccf056d40195de73d198c9a;p=ceph.git 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) Conflicts: src/os/bluestore/bluestore_tool.cc --- 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" ||