]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd/PG: fix clang build vs private state events 18217/head
authorSage Weil <sage@redhat.com>
Tue, 10 Oct 2017 12:23:19 +0000 (07:23 -0500)
committerSage Weil <sage@redhat.com>
Tue, 10 Oct 2017 13:29:54 +0000 (08:29 -0500)
Signed-off-by: Sage Weil <sage@redhat.com>
src/osd/PG.h

index 3cb5c30d0575eb86d5610bf2a9e69803400fd222..38891b5cbd1513f92ce12a3ac701b8358d9824e0 100644 (file)
@@ -1689,6 +1689,7 @@ protected:
     }
   };
 
+public:
   struct MInfoRec : boost::statechart::event< MInfoRec > {
     pg_shard_t from;
     pg_info_t info;
@@ -1699,7 +1700,6 @@ protected:
       *out << "MInfoRec from " << from << " info: " << info;
     }
   };
-
   struct MLogRec : boost::statechart::event< MLogRec > {
     pg_shard_t from;
     boost::intrusive_ptr<MOSDPGLog> msg;
@@ -1721,7 +1721,6 @@ protected:
         << " features: 0x" << hex << features << dec;
     }
   };
-
   struct MQuery : boost::statechart::event< MQuery > {
     pg_shard_t from;
     pg_query_t query;
@@ -1734,6 +1733,7 @@ protected:
           << " query: " << query;
     }
   };
+protected:
 
   struct AdvMap : boost::statechart::event< AdvMap > {
     OSDMapRef osdmap;
@@ -1768,6 +1768,7 @@ protected:
       *out << "Activate from " << activation_epoch;
     }
   };
+public:
   struct RequestBackfillPrio : boost::statechart::event< RequestBackfillPrio > {
     unsigned priority;
     explicit RequestBackfillPrio(unsigned prio) :
@@ -1797,22 +1798,28 @@ protected:
       *out << "DeferRecovery: delay " << delay;
     }
   };
-
+protected:
   TrivialEvent(Initialize)
   TrivialEvent(Load)
   TrivialEvent(GotInfo)
   TrivialEvent(NeedUpThru)
+  public:
   TrivialEvent(NullEvt)
+  protected:
   TrivialEvent(FlushedEvt)
   TrivialEvent(Backfilled)
   TrivialEvent(LocalBackfillReserved)
+  public:
   TrivialEvent(RemoteBackfillReserved)
+  protected:
   TrivialEvent(RejectRemoteReservation)
+  public:
   TrivialEvent(RemoteReservationRejected)
   TrivialEvent(RemoteReservationCanceled)
   TrivialEvent(RequestBackfill)
   TrivialEvent(RequestRecovery)
   TrivialEvent(RecoveryDone)
+  protected:
   TrivialEvent(BackfillTooFull)
   TrivialEvent(RecoveryTooFull)
 
@@ -1825,7 +1832,9 @@ protected:
   TrivialEvent(AllReplicasRecovered)
   TrivialEvent(DoRecovery)
   TrivialEvent(LocalRecoveryReserved)
+  public:
   TrivialEvent(RemoteRecoveryReserved)
+  protected:
   TrivialEvent(AllRemotesReserved)
   TrivialEvent(AllBackfillsReserved)
   TrivialEvent(GoClean)