]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
PGLog: remove obsolete assert in merge_log 1559/head
authorSamuel Just <sam.just@inktank.com>
Wed, 30 Oct 2013 23:54:39 +0000 (16:54 -0700)
committerSamuel Just <sam.just@inktank.com>
Fri, 28 Mar 2014 22:34:46 +0000 (15:34 -0700)
This assert assumes that if olog.head != log.head, olog contains
a log entry at log.head, which may not be true since pg splitting
might have left the log with arbitrary holes.

Related: 0c2769d3321bff6e85ec57c85a08ee0b8e751bcb
Signed-off-by: Samuel Just <sam.just@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
(cherry picked from commit 353813b2e1a98901b876790c7c531f8a202c661d)

src/osd/PGLog.cc

index 4b33479cb2cc6200be7f987cb462d6c379ea6bfd..73ee61920e8ff9e0205c46fdd0fb2fb7ff11408f 100644 (file)
@@ -422,8 +422,6 @@ void PGLog::merge_log(ObjectStore::Transaction& t,
       log.index(*to);
       dout(15) << *to << dendl;
     }
-    assert(to != olog.log.end() ||
-          (olog.head == info.last_update));
       
     // splice into our log.
     log.log.splice(log.log.begin(),