From f443ff3006d41a7b0a2d7b649e8def0ffef6df12 Mon Sep 17 00:00:00 2001 From: Samuel Just Date: Wed, 30 Oct 2013 16:54:39 -0700 Subject: [PATCH] PGLog: remove obsolete assert in merge_log 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 Reviewed-by: Sage Weil (cherry picked from commit 353813b2e1a98901b876790c7c531f8a202c661d) --- src/osd/PGLog.cc | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/osd/PGLog.cc b/src/osd/PGLog.cc index 4b33479cb2c..73ee61920e8 100644 --- a/src/osd/PGLog.cc +++ b/src/osd/PGLog.cc @@ -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(), -- 2.47.3