]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
PGLog: remove obsolete assert in merge_log
authorSamuel Just <sam.just@inktank.com>
Wed, 30 Oct 2013 23:54:39 +0000 (16:54 -0700)
committerSage Weil <sage@inktank.com>
Fri, 1 Nov 2013 23:00:15 +0000 (16:00 -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>
src/osd/PGLog.cc

index 130a8e0778f71281d0da6685d7e69c1017a219d4..526baecf1284a660606ee1cda6525c341a087ba1 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(),