]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
tools/cephfs: instantiate MDSUtility after global_init() 21321/head
authorYan, Zheng <zyan@redhat.com>
Tue, 10 Apr 2018 08:02:18 +0000 (16:02 +0800)
committerYan, Zheng <zyan@redhat.com>
Tue, 10 Apr 2018 08:15:16 +0000 (16:15 +0800)
commita7db43b5f7d787562c94db00a2bb31b59af9fc7a
tree78cdee2b3587319e6f4dd952d89c68aa72bc9593
parentee03866b9feaaca1af4c77287d14b9da6ea9c8cb
tools/cephfs: instantiate MDSUtility after global_init()

cephfs-foo-tool from current master crashes immediately it starts.

Introduced by commit 6972273d53d "global: output usage on -h, --help,
or no args before contacting mons"

Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
Fixes: http://tracker.ceph.com/issues/23624
src/tools/cephfs/DataScan.h
src/tools/cephfs/JournalTool.h
src/tools/cephfs/TableTool.h
src/tools/cephfs/cephfs-data-scan.cc
src/tools/cephfs/cephfs-journal-tool.cc
src/tools/cephfs/cephfs-table-tool.cc