From: Max Kellermann Date: Sun, 27 Oct 2024 13:10:12 +0000 (+0100) Subject: tools/kvstore_tool: add missing `#ifdef WITH_BLUESTORE` X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=3ead485887d6378b31e77da7341c61bcbfbd095c;p=ceph.git tools/kvstore_tool: add missing `#ifdef WITH_BLUESTORE` Signed-off-by: Max Kellermann --- diff --git a/src/tools/kvstore_tool.cc b/src/tools/kvstore_tool.cc index 997180d9706..04f7a9506f1 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 881446a7aac..241b42e9852 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 };