]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osd/PG: make some trivial events TrivialEvent
authorSage Weil <sage@redhat.com>
Tue, 19 Sep 2017 19:49:05 +0000 (14:49 -0500)
committerSage Weil <sage@redhat.com>
Wed, 20 Sep 2017 18:32:21 +0000 (14:32 -0400)
Signed-off-by: Sage Weil <sage@redhat.com>
src/osd/PG.h

index 2cf90d48b194ad8d2a0dd835bfc439e2769c5b61..05a74afdb9c4fe4a2b643477a4d2738528eef21b 100644 (file)
@@ -1576,6 +1576,12 @@ public:
   TrivialEvent(RecoveryTooFull)
   TrivialEvent(CancelRecovery)
 
+  TrivialEvent(MakePrimary)
+  TrivialEvent(MakeStray)
+  TrivialEvent(NeedActingChange)
+  TrivialEvent(IsIncomplete)
+  TrivialEvent(IsDown)
+
   TrivialEvent(AllReplicasRecovered)
   TrivialEvent(DoRecovery)
   TrivialEvent(LocalRecoveryReserved)
@@ -1741,12 +1747,6 @@ public:
       }
     };
 
-    struct MakePrimary : boost::statechart::event< MakePrimary > {
-      MakePrimary() : boost::statechart::event< MakePrimary >() {}
-    };
-    struct MakeStray : boost::statechart::event< MakeStray > {
-      MakeStray() : boost::statechart::event< MakeStray >() {}
-    };
     struct Primary;
     struct Stray;
 
@@ -1762,17 +1762,8 @@ public:
 
     struct Peering;
     struct WaitActingChange;
-    struct NeedActingChange : boost::statechart::event< NeedActingChange > {
-      NeedActingChange() : boost::statechart::event< NeedActingChange >() {}
-    };
     struct Incomplete;
-    struct IsIncomplete : boost::statechart::event< IsIncomplete > {
-      IsIncomplete() : boost::statechart::event< IsIncomplete >() {}
-    };
     struct Down;
-    struct IsDown : boost::statechart::event< IsDown > {
-      IsDown() : boost::statechart::event< IsDown >() {}
-    };
 
     struct Primary : boost::statechart::state< Primary, Started, Peering >, NamedState {
       explicit Primary(my_context ctx);