From 3ead485887d6378b31e77da7341c61bcbfbd095c Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sun, 27 Oct 2024 14:10:12 +0100 Subject: [PATCH] tools/kvstore_tool: add missing `#ifdef WITH_BLUESTORE` Signed-off-by: Max Kellermann --- src/tools/kvstore_tool.cc | 4 ++++ src/tools/kvstore_tool.h | 2 ++ 2 files changed, 6 insertions(+) diff --git a/src/tools/kvstore_tool.cc b/src/tools/kvstore_tool.cc index 997180d970650..04f7a9506f1da 100644 --- a/src/tools/kvstore_tool.cc +++ b/src/tools/kvstore_tool.cc @@ -55,6 +55,8 @@ StoreTool::StoreTool(const string& type, } } +#ifdef WITH_BLUESTORE + int StoreTool::load_bluestore(const string& path, bool read_only, bool to_repair) { auto bluestore = new BlueStore(g_ceph_context, path); @@ -67,6 +69,8 @@ int StoreTool::load_bluestore(const string& path, bool read_only, bool to_repair return 0; } +#endif // WITH_BLUESTORE + uint32_t StoreTool::traverse(const string& prefix, const bool do_crc, const bool do_value_dump, diff --git a/src/tools/kvstore_tool.h b/src/tools/kvstore_tool.h index 881446a7aaca0..241b42e9852c0 100644 --- a/src/tools/kvstore_tool.h +++ b/src/tools/kvstore_tool.h @@ -80,6 +80,8 @@ public: int print_stats() const; int build_size_histogram(const std::string& prefix) const; +#ifdef WITH_BLUESTORE private: int load_bluestore(const std::string& path, bool read_only, bool need_open_db); +#endif // WITH_BLUESTORE }; -- 2.39.5