From 61995ee7a6f056b613891b0b6287f15c5aaafc79 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Mon, 8 Jun 2009 15:52:14 -0700 Subject: [PATCH] osd: cleanup --- src/osd/PG.cc | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/src/osd/PG.cc b/src/osd/PG.cc index 4411603f4780c..476b135fb4a53 100644 --- a/src/osd/PG.cc +++ b/src/osd/PG.cc @@ -1350,10 +1350,11 @@ void PG::activate(ObjectStore::Transaction& t, for (unsigned i=1; iosdmap->get_epoch(), info); - if (peer_info[peer].last_update < log.bottom) { + if (pi.last_update < log.bottom) { // summary/backlog assert(log.backlog); m->log = log; } else { // incremental log - assert(peer_info[peer].last_update < info.last_update); - m->log.copy_after(log, peer_info[peer].last_update); + assert(pi.last_update < info.last_update); + m->log.copy_after(log, pi.last_update); } } @@ -1382,7 +1383,7 @@ void PG::activate(ObjectStore::Transaction& t, // update local version of peer's missing list! if (m) { - eversion_t plu = peer_info[peer].last_update; + eversion_t plu = pi.last_update; for (list::iterator p = m->log.log.begin(); p != m->log.log.end(); p++) @@ -1398,12 +1399,12 @@ void PG::activate(ObjectStore::Transaction& t, // update our missing if (pm.num_missing() == 0) { - peer_info[peer].last_complete = peer_info[peer].last_update; - dout(10) << "activate peer osd" << peer << " already uptodate, " << peer_info[peer] << dendl; - assert(peer_info[peer].is_uptodate()); + pi.last_complete = pi.last_update; + dout(10) << "activate peer osd" << peer << " already uptodate, " << pi << dendl; + assert(pi.is_uptodate()); uptodate_set.insert(peer); } else { - dout(10) << "activate peer osd" << peer << " " << peer_info[peer] + dout(10) << "activate peer osd" << peer << " " << pi << " missing " << pm << dendl; } @@ -1798,7 +1799,7 @@ void PG::read_log(ObjectStore *store) ondisklog.block_map[opos] = e.version; log.log.push_back(e); } else { - dout(10) << "read_log ignoring entry at " << pos << dendl; + dout(10) << "read_log ignoring entry at " << pos << dendl; } } } -- 2.39.5