]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: Remove unused pg_log_t::copy_range()
authorDavid Zafman <dzafman@redhat.com>
Tue, 30 Apr 2019 23:09:47 +0000 (16:09 -0700)
committerDavid Zafman <dzafman@redhat.com>
Mon, 13 May 2019 22:30:15 +0000 (15:30 -0700)
Signed-off-by: David Zafman <dzafman@redhat.com>
(cherry picked from commit d1ad129dd4b71640ae2e74d793e45146dca8bf26)

src/osd/osd_types.cc
src/osd/osd_types.h

index 7a42f566a069066ea5fe558cc9a7e12e7d8e5d2f..f3eb37a7b79a5835212dd1d49d52f8a748e5029e 100644 (file)
@@ -4657,26 +4657,6 @@ void pg_log_t::copy_after(const pg_log_t &other, eversion_t v)
   }
 }
 
-void pg_log_t::copy_range(const pg_log_t &other, eversion_t from, eversion_t to)
-{
-  can_rollback_to = other.can_rollback_to;
-  list<pg_log_entry_t>::const_reverse_iterator i = other.log.rbegin();
-  ceph_assert(i != other.log.rend());
-  while (i->version > to) {
-    ++i;
-    ceph_assert(i != other.log.rend());
-  }
-  ceph_assert(i->version == to);
-  head = to;
-  for ( ; i != other.log.rend(); ++i) {
-    if (i->version <= from) {
-      tail = i->version;
-      break;
-    }
-    log.push_front(*i);
-  }
-}
-
 void pg_log_t::copy_up_to(const pg_log_t &other, int max)
 {
   can_rollback_to = other.can_rollback_to;
index 3457d5baa2c8a097f7ecf80db107288601224d5f..ce9803a598a5688681d9f183eb7cd2bb3e1ba8a2 100644 (file)
@@ -4084,15 +4084,6 @@ public:
    */
   void copy_after(const pg_log_t &other, eversion_t from);
 
-  /**
-   * copy a range of entries from another pg_log_t
-   *
-   * @param other pg_log_t to copy from
-   * @param from copy entries after this version
-   * @param to up to and including this version
-   */
-  void copy_range(const pg_log_t &other, eversion_t from, eversion_t to);
-
   /**
    * copy up to N entries
    *