]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: log debug output for Crashed state
authorSage Weil <sage.weil@dreamhost.com>
Mon, 9 May 2011 22:55:38 +0000 (15:55 -0700)
committerSage Weil <sage.weil@dreamhost.com>
Mon, 9 May 2011 23:01:49 +0000 (16:01 -0700)
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
src/osd/PG.cc
src/osd/PG.h

index 59c527f89cf17ddc60a82c4a90758a9083b6eff2..9051d9ec210f0d1ccdc87328fbc3569b90831240 100644 (file)
@@ -3775,6 +3775,14 @@ std::ostream& operator<<(std::ostream& oss,
 #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";
index c95709889012407c3e3441b0b49078299966de96..25eb58db1ca6d9d6839314800fe54bb8afd742d7 100644 (file)
@@ -996,7 +996,7 @@ public:
     };
 
     struct Crashed : boost::statechart::state< Crashed, RecoveryMachine >, NamedState {
-      Crashed(my_context ctx) : my_base(ctx) { assert(0); }
+      Crashed(my_context ctx);
     };
 
     struct Started;