]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
tools/ceph_kvstore_tool: do not open rocksdb when repairing it 25108/head
authorKefu Chai <kchai@redhat.com>
Thu, 15 Nov 2018 05:56:19 +0000 (13:56 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 15 Nov 2018 06:02:05 +0000 (14:02 +0800)
commit85c65a58cc454d9181ed64a4e5e4af0fea3812c6
tree38b68dca54b1f10f4fca7b1993c350a384fd5258
parenteaf8e409806a1a0cb4cacc36857daa99a80bac66
tools/ceph_kvstore_tool: do not open rocksdb when repairing it

before this change, the `need_open_db` parameter is passed to the
constructor of BlueStore as `min_alloc_size`. and rocksdb will fail to
repair because Repairer::Run() also tries to acquire the db lock, and it
will fail to do so if the lock file is already acquired by
BlueStore::_mount().

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/tools/ceph_kvstore_tool.cc