msg->put();
}
+/*------WaitActingChange--------*/
+PG::RecoveryState::WaitActingChange::WaitActingChange(my_context ctx) : my_base(ctx)
+{
+ state_name = "Started/Primary/Peering/WaitActingChange";
+ context< RecoveryMachine >().log_enter(state_name);
+}
+
+void PG::RecoveryState::WaitActingChange::exit() {
+ context< RecoveryMachine >().log_exit(state_name, enter_time);
+}
+
/*------GetMissing--------*/
PG::RecoveryState::GetMissing::GetMissing(my_context ctx) : my_base(ctx)
{
};
struct Peering;
- struct Pending;
+ struct WaitActingChange;
struct NeedNewMap : boost::statechart::event< NeedNewMap > {
NeedNewMap() : boost::statechart::event< NeedNewMap >() {}
};
boost::statechart::custom_reaction< ActMap >,
boost::statechart::custom_reaction< BacklogComplete >,
boost::statechart::custom_reaction< MNotifyRec >,
- boost::statechart::transition< NeedNewMap, Pending >
+ boost::statechart::transition< NeedNewMap, WaitActingChange >
> reactions;
boost::statechart::result react(const BacklogComplete&);
boost::statechart::result react(const ActMap&);
boost::statechart::result react(const MNotifyRec&);
};
- struct Pending : boost::statechart::simple_state< Pending, Primary> {};
+ struct WaitActingChange : boost::statechart::state< WaitActingChange, Primary>,
+ NamedState {
+ WaitActingChange(my_context ctx);
+ void exit();
+ };
struct GetInfo;
struct Active;