return discard_event();
}
+boost::statechart::result
+PG::RecoveryState::ReplicaActive::react(const MQuery& query) {
+ PG *pg = context< RecoveryMachine >().pg;
+ assert(query.query.type == Query::MISSING);
+ pg->fulfill_log(query.from, query.query);
+ return discard_event();
+}
/*-------Stray---*/
PG::RecoveryState::Stray::Stray(my_context ctx)
: my_base(ctx), backlog_requested(false) {
struct ReplicaActive : boost::statechart::state< ReplicaActive, Started >, NamedState {
typedef boost::mpl::list <
boost::statechart::custom_reaction< ActMap >,
+ boost::statechart::custom_reaction< MQuery >,
boost::statechart::custom_reaction< MInfoRec >
> reactions;
ReplicaActive(my_context ctx);
boost::statechart::result react(const MInfoRec& infoevt);
boost::statechart::result react(const ActMap&);
+ boost::statechart::result react(const MQuery&);
};
struct Stray : boost::statechart::state< Stray, Started >, NamedState {