From 2452d41503c4cfccdab4c5593d6a795fcd8b883c Mon Sep 17 00:00:00 2001 From: Josh Durgin Date: Wed, 18 May 2011 16:44:05 -0700 Subject: [PATCH] PG: include ourselves in the prior set All acting OSDs should be in the prior set, since any of them may have the newest update. Signed-off-by: Josh Durgin --- src/osd/PG.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/osd/PG.cc b/src/osd/PG.cc index e76b57e2b311b..07bd8f73d93c4 100644 --- a/src/osd/PG.cc +++ b/src/osd/PG.cc @@ -4309,6 +4309,9 @@ void PG::RecoveryState::GetInfo::get_infos() it != prior_set->cur.end(); ++it) { int peer = *it; + if (peer == pg->osd->whoami) { + continue; + } if (pg->peer_info.count(peer)) { dout(10) << " have osd" << peer << " info " << pg->peer_info[peer] << dendl; continue; @@ -4742,8 +4745,7 @@ PG::PgPriorSet::PgPriorSet(int whoami, if (up[i] != whoami) cur.insert(up[i]); for (unsigned i=0; i