mirror of
https://github.com/ceph/ceph
synced 2025-03-06 00:10:04 +00:00
PG: check_recovery_sources on each map
Signed-off-by: Samuel Just <sam.just@inktank.com>
This commit is contained in:
parent
fb4ce53865
commit
090e5109f2
@ -4162,6 +4162,7 @@ boost::statechart::result PG::RecoveryState::Active::react(const AdvMap& advmap)
|
||||
dout(10) << *pg << " snap_trimq now " << pg->snap_trimq << dendl;
|
||||
pg->dirty_info = true;
|
||||
}
|
||||
pg->check_recovery_sources(pg->get_osdmap());
|
||||
return forward_event();
|
||||
}
|
||||
|
||||
@ -4172,8 +4173,7 @@ boost::statechart::result PG::RecoveryState::Active::react(const ActMap&)
|
||||
assert(pg->is_active());
|
||||
assert(pg->is_primary());
|
||||
|
||||
if (pg->check_recovery_sources(pg->get_osdmap()) &&
|
||||
pg->have_unfound()) {
|
||||
if (pg->have_unfound()) {
|
||||
// object may have become unfound
|
||||
pg->discover_all_missing(*context< RecoveryMachine >().get_query_map());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user