]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
tools/ceph_kvstore_tool: do not open rocksdb when repairing it
authorKefu Chai <kchai@redhat.com>
Thu, 15 Nov 2018 05:56:19 +0000 (13:56 +0800)
committerKefu Chai <kchai@redhat.com>
Tue, 11 Feb 2020 11:06:32 +0000 (19:06 +0800)
commit83a03a3cea8bcc1af345ae234f5195550a82b44a
tree8d7e69fb7a88878e8e50b229cf2de1dfadb0dbc7
parent60be81f3c780d9c0dc9af98bf6a6d1644c5a7f88
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>
(cherry picked from commit 85c65a58cc454d9181ed64a4e5e4af0fea3812c6)
src/tools/ceph_kvstore_tool.cc