]> 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>
Thu, 28 Mar 2019 08:27:04 +0000 (08:27 +0000)
Signed-off-by: David Zafman <dzafman@redhat.com>
(cherry picked from commit d1ad129dd4b71640ae2e74d793e45146dca8bf26)

Conflicts:
src/osd/osd_types.cc (trivial)

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

index 20a02735fa3768b81979fa63314ac19b36513ef0..b8acccc17dfdfa028cf1f90680de7871f30475b2 100644 (file)
@@ -4357,26 +4357,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();
-  assert(i != other.log.rend());
-  while (i->version > to) {
-    ++i;
-    assert(i != other.log.rend());
-  }
-  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 0f300d6e82e38536277be853f5121770063bd567..ad16d59669192ad19c7647778c6184ba1ad739c5 100644 (file)
@@ -3668,15 +3668,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
    *