From 695e6a7625175522a83056b458079f5eb20231c2 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Thu, 18 Jun 2009 18:39:58 -0700 Subject: [PATCH] osd: remove bad assertion to allow trim before pg is clean We may trim the log before recovery completes. --- src/osd/PG.cc | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/osd/PG.cc b/src/osd/PG.cc index 9f0ae2221a283..8f31b94349d39 100644 --- a/src/osd/PG.cc +++ b/src/osd/PG.cc @@ -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) -- 2.39.5