Skip to content

Commit

Permalink
tool/ceph-bluestore-tool: avoid mon/config access when calling global…
Browse files Browse the repository at this point in the history
…_init

This caused a permanent stuck on tool's startup.

Signed-off-by: Igor Fedotov <ifedotov@suse.com>
  • Loading branch information
ifed01 committed May 24, 2018
1 parent 9211343 commit fa65e7b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/os/bluestore/bluestore_tool.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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" ||
Expand Down

0 comments on commit fa65e7b

Please sign in to comment.