]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
tools/ceph-kvstore-tool: fix segfaults when repair the rocksdb 43346/head
authorhuangjun <huangjun@xsky.com>
Wed, 29 Sep 2021 07:32:23 +0000 (15:32 +0800)
committerhuangjun <huangjun@xsky.com>
Wed, 29 Sep 2021 15:50:56 +0000 (23:50 +0800)
commit28948358227d239ea3e8946601f9f54e3a790c08
treeb2875f35e60720ef00f725ad877e259fd496148e
parent5ee3d38f78c197eb9982be67b0ac6a2514a3c332
tools/ceph-kvstore-tool: fix segfaults when repair the rocksdb

It will not set the db handler in repair process as it's not need
to open the db, that will cause db remains 0x0, then the db->repair() will
cause the segfault.

Fixes: https://tracker.ceph.com/issues/52756
Signed-off-by: huangjun <huangjun@xsky.com>
src/tools/kvstore_tool.cc