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:
Samuel Just 2012-04-26 15:44:21 -07:00
parent 7fe45fd65d
commit 3e880174dd

View File

@ -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)