From: Radoslaw Zarzynski Date: Tue, 26 Nov 2024 19:19:36 +0000 (+0000) Subject: os, test: make omap_iterate obligatory for ObjectStores X-Git-Tag: v19.2.3~383^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=5c9537b19d1d68e9d881795d0dfc424224bbdaba;p=ceph.git os, test: make omap_iterate obligatory for ObjectStores Signed-off-by: Radoslaw Zarzynski (cherry picked from commit cbc771a4db632540725a8d57b538f3affff9eaf5) --- diff --git a/src/os/ObjectStore.h b/src/os/ObjectStore.h index 5e8f7f5fab62..f22574f7d828 100644 --- a/src/os/ObjectStore.h +++ b/src/os/ObjectStore.h @@ -794,9 +794,7 @@ public: omap_iter_seek_t start_from, std::function visitor - ) { - return -EOPNOTSUPP; - } + ) = 0; virtual int flush_journal() { return -EOPNOTSUPP; } diff --git a/src/test/objectstore/ObjectStoreImitator.h b/src/test/objectstore/ObjectStoreImitator.h index d71d7f2fe58b..875f9041b832 100644 --- a/src/test/objectstore/ObjectStoreImitator.h +++ b/src/test/objectstore/ObjectStoreImitator.h @@ -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 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 {