Replicas only send Infos during activate.
Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
return discard_event();
}
-boost::statechart::result
-PG::RecoveryState::GetInfo::react(const MInfoRec& infoevt) {
- // notify and info are equivalent in this context.
- post_event(MInfoRec(infoevt.from, infoevt.info));
- return discard_event();
-}
-
void PG::RecoveryState::GetInfo::exit() {
context< RecoveryMachine >().log_exit(state_name, enter_time);
}
typedef boost::mpl::list <
boost::statechart::transition< GotInfo, GetLog >,
- boost::statechart::custom_reaction< MNotifyRec >,
- boost::statechart::custom_reaction< MInfoRec >
+ boost::statechart::custom_reaction< MNotifyRec >
> reactions;
boost::statechart::result react(const MNotifyRec& infoevt);
- boost::statechart::result react(const MInfoRec& infoevt);
};
struct GetMissing;