]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/os: remove FuturizedStore::OmapIterator::tail_key
authorSamuel Just <sjust@redhat.com>
Thu, 25 Feb 2021 05:45:21 +0000 (21:45 -0800)
committerSamuel Just <sjust@redhat.com>
Wed, 10 Mar 2021 06:35:55 +0000 (22:35 -0800)
This doesn't actually make sense for FuturzizedStore implementations other
than BlueStore, and then only in a diagnostic capacity.  It also doesn't
have any actual users at the moment.

Signed-off-by: Samuel Just <sjust@redhat.com>
src/crimson/os/alienstore/alien_store.cc
src/crimson/os/alienstore/alien_store.h
src/crimson/os/cyanstore/cyan_store.h
src/crimson/os/futurized_store.h

index 5bde60f8fdb538d42d9d8fa745ce90f8544f2996..827d9f9af2906b925e4c0c46f7d12506cc01a7ec 100644 (file)
@@ -557,13 +557,6 @@ std::string AlienStore::AlienOmapIterator::key()
   return iter->key();
 }
 
-seastar::future<std::string> AlienStore::AlienOmapIterator::tail_key()
-{
-  return store->tp->submit([this] {
-    return iter->tail_key();
-  });
-}
-
 ceph::buffer::list AlienStore::AlienOmapIterator::value()
 {
   return iter->value();
index 8e67d08f24ecf79f6cd7719b61649567ef52022d..ae4830981e6e59a370414c59823f5762ebf87000 100644 (file)
@@ -31,7 +31,6 @@ public:
     bool valid() const;
     seastar::future<> next();
     std::string key();
-    seastar::future<std::string> tail_key();
     ceph::buffer::list value();
     int status() const;
   private:
index 07a8ff29e7e8394083f9e17fb8b355dc85318dd8..6d802152dc442ea859eabf4cc1fb40658c089d2b 100644 (file)
@@ -50,9 +50,6 @@ public:
     std::string key() final {
       return iter->first;
     }
-    virtual seastar::future<std::string> tail_key(){
-      return seastar::make_ready_future<std::string>((++obj->omap.end())->first);
-    }
     virtual ceph::buffer::list value() {
       return iter->second;
     }
index 98ea7274b37049608b7c36718e4b57821751fbd9..d7d9c6f133ab7e646a325a1e2815de6f4a454fff 100644 (file)
@@ -37,9 +37,6 @@ public:
     virtual std::string key() {
       return {};
     }
-    virtual seastar::future<std::string> tail_key() {
-      return seastar::make_ready_future<std::string>();
-    }
     virtual ceph::buffer::list value() {
       return {};
     }