]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
tools/kvstore_tool: add missing `#ifdef WITH_BLUESTORE` 61020/head
authorMax Kellermann <max.kellermann@ionos.com>
Sun, 27 Oct 2024 13:10:12 +0000 (14:10 +0100)
committerMax Kellermann <max.kellermann@ionos.com>
Fri, 21 Feb 2025 14:52:43 +0000 (15:52 +0100)
Signed-off-by: Max Kellermann <max.kellermann@ionos.com>
src/tools/kvstore_tool.cc
src/tools/kvstore_tool.h

index 997180d970650f591f99bb0219aff35130733214..04f7a9506f1da32cbe67ca00617b82ef6eccadba 100644 (file)
@@ -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,
index 881446a7aaca01c30219199eda8c9a2965853ab9..241b42e9852c043bb78fd32f9a2b0cbd7e00be3d 100644 (file)
@@ -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
 };