]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
os, test: make omap_iterate obligatory for ObjectStores 60278/head
authorRadoslaw Zarzynski <rzarzyns@redhat.com>
Tue, 26 Nov 2024 19:19:36 +0000 (19:19 +0000)
committerRadoslaw Zarzynski <rzarzyns@redhat.com>
Tue, 17 Dec 2024 19:17:49 +0000 (19:17 +0000)
Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
src/os/ObjectStore.h
src/test/objectstore/ObjectStoreImitator.h

index 2b6ede94cd368044127f05979de11be28c6d487b..df3ae920a2fedb89c2568bf0f63f3aa47bc33ce5 100644 (file)
@@ -798,9 +798,7 @@ public:
     omap_iter_seek_t start_from,
     std::function<omap_iter_ret_t(std::string_view,
                                   std::string_view)> visitor
-  ) {
-    return -EOPNOTSUPP;
-  }
+  ) = 0;
 
   virtual int flush_journal() { return -EOPNOTSUPP; }
 
index d71d7f2fe58bc0f6322d8bb781ff79aa5d711f67..875f9041b83275a71e49a461543e84815f3c6a08 100644 (file)
@@ -347,6 +347,16 @@ public:
                     ) override {
     return {};
   }
+
+  int omap_iterate(CollectionHandle &c,   ///< [in] collection
+                   const ghobject_t &oid, ///< [in] object
+                   /// [in] where the iterator should point to at the beginning
+                   omap_iter_seek_t start_from,
+                   std::function<omap_iter_ret_t(std::string_view, std::string_view)> f
+                   ) override {
+    return 0;
+  }
+
   void set_fsid(uuid_d u) override {}
   uuid_d get_fsid() override { return {}; }
   uint64_t estimate_objects_overhead(uint64_t num_objects) override {