From: Sage Weil Date: Thu, 25 Jun 2009 20:01:16 +0000 (-0700) Subject: osd: update primary's notion of peer last_update on activate X-Git-Tag: v0.10~139 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=5e15db393b2baed03027973c3871d1ef0b320e2b;p=ceph.git osd: update primary's notion of peer last_update on activate We are pushing the peer the log to bring it up to date, so update our peer_info[peer].last_update to match. Otherwise, we get confused if we get, say, stray content and peer() is called later, and we have out of date peer stats. --- diff --git a/src/osd/PG.cc b/src/osd/PG.cc index d96d0a74f38a..eb7aca406cda 100644 --- a/src/osd/PG.cc +++ b/src/osd/PG.cc @@ -1432,6 +1432,9 @@ void PG::activate(ObjectStore::Transaction& t, osd->messenger->send_message(m, osd->osdmap->get_inst(peer)); } + // peer now has + pi.last_update = info.last_update; + // update our missing if (pm.num_missing() == 0) { pi.last_complete = pi.last_update;