]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: remove bad assertion to allow trim before pg is clean
authorSage Weil <sage@newdream.net>
Fri, 19 Jun 2009 01:39:58 +0000 (18:39 -0700)
committerSage Weil <sage@newdream.net>
Fri, 19 Jun 2009 04:18:49 +0000 (21:18 -0700)
We may trim the log before recovery completes.

src/osd/PG.cc

index 9f0ae2221a28391afc7905274787d7d6838daba7..8f31b94349d39ce5e7585b74ff7af589aeeedca0 100644 (file)
@@ -123,8 +123,6 @@ void PG::IndexedLog::trim(ObjectStore::Transaction& t, eversion_t s)
   if (backlog && s < bottom)
     s = bottom;
 
-  assert(complete_to == log.end());
-
   while (!log.empty()) {
     Entry &e = *log.begin();
     if (e.version > s)