From 6e0e5532085595fca4a3569298c4b66029a593e3 Mon Sep 17 00:00:00 2001 From: Samuel Just Date: Fri, 13 May 2011 14:07:05 -0700 Subject: [PATCH] PG: search_for_missing takes the other osd's missing set Previously, search_for_missing was erroneously passed the primary's missing in a few places. Signed-off-by: Samuel Just --- src/osd/PG.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/osd/PG.cc b/src/osd/PG.cc index 847f751b345de..5c4538cd3bc70 100644 --- a/src/osd/PG.cc +++ b/src/osd/PG.cc @@ -4077,7 +4077,7 @@ PG::RecoveryState::Active::react(const MLogRec& logevt) { << " log for unfound items" << dendl; PG *pg = context< RecoveryMachine >().pg; bool got_missing = pg->search_for_missing(logevt.msg->info, - &pg->missing, logevt.from); + &logevt.msg->missing, logevt.from); if (got_missing) pg->osd->queue_for_recovery(pg); return discard_event(); @@ -4506,7 +4506,7 @@ boost::statechart::result PG::RecoveryState::WaitUpThru::react(const MLogRec& lo << " log for unfound items" << dendl; PG *pg = context< RecoveryMachine >().pg; bool got_missing = pg->search_for_missing(logevt.msg->info, - &pg->missing, logevt.from); + &logevt.msg->missing, logevt.from); // hmm.. should we? (void)got_missing; -- 2.39.5