Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
#define dout_prefix (*_dout << context< RecoveryMachine >().pg->gen_prefix() \
<< "state<" << get_state_name() << ">: ")
+/*------Crashed-------*/
+PG::RecoveryState::Crashed::Crashed(my_context ctx) : my_base(ctx) {
+ state_name = "Crashed";
+ context< RecoveryMachine >().log_enter(state_name);
+ assert(0 == "we got a bad state machine event");
+}
+
+
/*------Initial-------*/
PG::RecoveryState::Initial::Initial(my_context ctx) : my_base(ctx) {
state_name = "Initial";
};
struct Crashed : boost::statechart::state< Crashed, RecoveryMachine >, NamedState {
- Crashed(my_context ctx) : my_base(ctx) { assert(0); }
+ Crashed(my_context ctx);
};
struct Started;