From: Kefu Chai Date: Wed, 4 Nov 2020 10:01:48 +0000 (+0800) Subject: crimson/osd: mark CyanStore::CyanOmapIterator methods final X-Git-Tag: v16.1.0~688^2~4 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=f891bf385d595e764cb182a383e77271e189ed27;p=ceph.git crimson/osd: mark CyanStore::CyanOmapIterator methods final this class is not intended to be inherited by classes, and these methods are "final", so mark them "final". Signed-off-by: Kefu Chai --- diff --git a/src/crimson/os/cyanstore/cyan_store.h b/src/crimson/os/cyanstore/cyan_store.h index 0dc9ddef271e7..65e031ff556e0 100644 --- a/src/crimson/os/cyanstore/cyan_store.h +++ b/src/crimson/os/cyanstore/cyan_store.h @@ -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 tail_key(){