diff --git a/src/osd/PG.cc b/src/osd/PG.cc index 4bcd5051d0277..72c9dfa49322c 100644 --- a/src/osd/PG.cc +++ b/src/osd/PG.cc @@ -1204,9 +1204,6 @@ void PG::activate(ObjectStore::Transaction& t, if (is_primary()) { // start up replicas - // count replicas that are not backfilling - unsigned active = 1; - assert(actingbackfill.size() > 0); for (unsigned i=1; ipast_intervals = past_intervals; - if (pi.last_backfill == hobject_t::get_max()) - active++; - // update local version of peer's missing list! if (m && pi.last_backfill != hobject_t()) { for (list::iterator p = m->log.log.begin(); @@ -1299,8 +1293,6 @@ void PG::activate(ObjectStore::Transaction& t, } } - assert(active == acting.size()); - // degraded? if (get_osdmap()->get_pg_size(info.pgid) > acting.size()) state_set(PG_STATE_DEGRADED);