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: v13.2.3~157^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=b0f1e448ea3706a9a1ce7fc73b9bc3094518cd7c;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) --- diff --git a/src/os/bluestore/bluestore_tool.cc b/src/os/bluestore/bluestore_tool.cc index 97e7db58ded0..bc733735977f 100644 --- a/src/os/bluestore/bluestore_tool.cc +++ b/src/os/bluestore/bluestore_tool.cc @@ -292,9 +292,10 @@ int main(int argc, char **argv) for (auto& i : ceph_option_strings) { args.push_back(i.c_str()); } - 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" ||