mirror of
https://github.com/ceph/ceph
synced 2025-02-24 03:27:10 +00:00
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 <samuel.just@dreamhost.com>
This commit is contained in:
parent
72ca96e165
commit
6e0e553208
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user