]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
tools/ceph-kvstore-tool: fix segfaults when repair the rocksdb 51254/head
authorhuangjun <huangjun@xsky.com>
Wed, 29 Sep 2021 07:32:23 +0000 (15:32 +0800)
committerKonstantin Shalygin <k0ste@k0ste.ru>
Thu, 27 Apr 2023 10:50:22 +0000 (17:50 +0700)
commit98d067a1b7246f3e64fc91b894f77571d7dcb38b
treee52c5c716c803b882f786b82efb96f23d75704d7
parent75ec7d6692678e4cd7e96c7b92a3fbc4e45cec17
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>
(cherry picked from commit 28948358227d239ea3e8946601f9f54e3a790c08)
src/tools/kvstore_tool.cc