]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: fix compilation for some g++ versions
authorYehuda Sadeh <yehuda@hq.newdream.net>
Sat, 7 May 2011 05:10:21 +0000 (22:10 -0700)
committerYehuda Sadeh <yehuda@hq.newdream.net>
Sat, 7 May 2011 05:10:21 +0000 (22:10 -0700)
wasn't compiling on lenny, g++ ver 4.3.2. Might be that
it's also due to differebt boost version.

src/osd/PG.h

index d614f4ab57483e953e5158a571fcab6f91ae285f..8a4b5cd93c56a7c05206ec38fad7ae2093acd6c6 100644 (file)
@@ -907,11 +907,21 @@ public:
        osdmap(osdmap), lastmap(lastmap), newup(newup), newacting(newacting) {}
     };
 
-    struct BacklogComplete : boost::statechart::event< BacklogComplete > {};
-    struct ActMap : boost::statechart::event< ActMap > {};
-    struct Activate : boost::statechart::event< Activate > {};
-    struct Initialize : boost::statechart::event< Initialize > {};
-    struct Load : boost::statechart::event< Load > {};
+    struct BacklogComplete : boost::statechart::event< BacklogComplete > {
+      BacklogComplete() : boost::statechart::event< BacklogComplete >() {}
+    };
+    struct ActMap : boost::statechart::event< ActMap > {
+      ActMap() : boost::statechart::event< ActMap >() {}
+    };
+    struct Activate : boost::statechart::event< Activate > {
+      Activate() : boost::statechart::event< Activate >() {}
+    };
+    struct Initialize : boost::statechart::event< Initialize > {
+      Initialize() : boost::statechart::event< Initialize >() {}
+    };
+    struct Load : boost::statechart::event< Load > {
+      Load() : boost::statechart::event< Load >() {}
+    };
 
 
     /* States */
@@ -1027,8 +1037,12 @@ public:
       boost::statechart::result react(const AdvMap&);
     };
 
-    struct MakePrimary : boost::statechart::event< MakePrimary > {};
-    struct MakeStray : boost::statechart::event< MakeStray > {};
+    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;
 
@@ -1044,7 +1058,9 @@ public:
 
     struct Peering;
     struct Pending;
-    struct NeedNewMap : boost::statechart::event< NeedNewMap > {};
+    struct NeedNewMap : boost::statechart::event< NeedNewMap > {
+      NeedNewMap() : boost::statechart::event< NeedNewMap >() {}
+    };
 
     struct Primary : boost::statechart::state< Primary, Started, Peering >, NamedState {
       Primary(my_context ctx);
@@ -1134,7 +1150,9 @@ public:
     };
 
     struct GetLog;
-    struct GotInfo : boost::statechart::event< GotInfo > {};
+    struct GotInfo : boost::statechart::event< GotInfo > {
+      GotInfo() : boost::statechart::event< GotInfo >() {}
+    };
 
     struct GetInfo : boost::statechart::state< GetInfo, Peering >, NamedState {
       set<int> peer_info_requested;
@@ -1153,7 +1171,9 @@ public:
     };
 
     struct GetMissing;
-    struct GotLog : boost::statechart::event< GotLog > {};
+    struct GotLog : boost::statechart::event< GotLog > {
+      GotLog() : boost::statechart::event< GotLog >() {}
+    };
 
     struct GetLog : boost::statechart::state< GetLog, Peering >, NamedState {
       int newest_update_osd;