]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/osd: mark CyanStore::CyanOmapIterator methods final
authorKefu Chai <kchai@redhat.com>
Wed, 4 Nov 2020 10:01:48 +0000 (18:01 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 4 Nov 2020 14:48:58 +0000 (22:48 +0800)
this class is not intended to be inherited by classes, and these methods
are "final", so mark them "final".

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/crimson/os/cyanstore/cyan_store.h

index 0dc9ddef271e73f180e4263fb79b9465970fede0..65e031ff556e021cce1ae77c2df7188641a133f7 100644 (file)
@@ -42,12 +42,12 @@ public:
     CyanOmapIterator(ObjectRef obj) : obj(obj) {
       iter = obj->omap.begin();
     }
-    virtual seastar::future<> seek_to_first();
-    virtual seastar::future<> upper_bound(const std::string &after);
-    virtual seastar::future<> lower_bound(const std::string &to);
-    virtual bool valid() const;
-    virtual seastar::future<> next();
-    virtual std::string key() {
+    seastar::future<> seek_to_first() final;
+    seastar::future<> upper_bound(const std::string &after) final;
+    seastar::future<> lower_bound(const std::string &to) final;
+    bool valid() const final;
+    seastar::future<> next() final;
+    std::string key() final {
       return iter->first;
     }
     virtual seastar::future<std::string> tail_key(){