mirror of
https://github.com/ceph/ceph
synced 2025-01-31 07:22:56 +00:00
PG: get_infos() should not post GotInfo
The MNotifyRec handler also posts GotInfo under the same conditions after calling get_infos(). Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
This commit is contained in:
parent
7fe45fd65d
commit
3e880174dd
@ -4366,6 +4366,9 @@ PG::RecoveryState::GetInfo::GetInfo(my_context ctx)
|
||||
pg->update_stats();
|
||||
|
||||
get_infos();
|
||||
if (peer_info_requested.empty() && !prior_set->pg_down) {
|
||||
post_event(GotInfo());
|
||||
}
|
||||
}
|
||||
|
||||
void PG::RecoveryState::GetInfo::get_infos()
|
||||
@ -4394,10 +4397,6 @@ void PG::RecoveryState::GetInfo::get_infos()
|
||||
peer_info_requested.insert(peer);
|
||||
}
|
||||
}
|
||||
|
||||
if (peer_info_requested.empty() && !prior_set->pg_down) {
|
||||
post_event(GotInfo());
|
||||
}
|
||||
}
|
||||
|
||||
boost::statechart::result PG::RecoveryState::GetInfo::react(const MNotifyRec& infoevt)
|
||||
|
Loading…
Reference in New Issue
Block a user