All acting OSDs should be in the prior set, since any of them may have
the newest update.
Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
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;
if (up[i] != whoami)
cur.insert(up[i]);
for (unsigned i=0; i<acting.size(); i++)
- if (acting[i] != whoami)
- cur.insert(acting[i]);
+ cur.insert(acting[i]);
// see if i have ever started since joining the pg. this is important only
// if we want to exclude lost osds.