]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
messages/MClass[Ack]: Roll back some unification.
authorGreg Farnum <gregf@hq.newdream.net>
Thu, 25 Jun 2009 19:05:15 +0000 (12:05 -0700)
committerGreg Farnum <gregf@hq.newdream.net>
Thu, 25 Jun 2009 21:54:06 +0000 (14:54 -0700)
version_t last and PaxosServiceMessage::version shouldn't
be the same in these messages. Remove that and add a new
constructor that does set the version (but it's unneeded).

src/messages/MClass.h
src/messages/MClassAck.h

index ecd1314a8d458eb2448292995a3e44dcdd81832f..b969292af17a34c215972034a619489e23c7e76e 100644 (file)
@@ -35,13 +35,15 @@ public:
   __s32 action;
 
 
-  MClass() : PaxosServiceMessage(MSG_CLASS, 0) {}
+  MClass() : PaxosServiceMessage(MSG_CLASS, 0), {}
 #if 0
   MClass(ceph_fsid_t& f, deque<ClassLibraryIncremental>& e) :
     PaxosServiceMessage(MSG_CLASS, 0),
     fsid(f), entries(e), last(0), action(0) {}
 #endif
-  MClass(ceph_fsid_t& f, version_t l) : PaxosServiceMessage(MSG_CLASS, l), fsid(f), last(l) {}
+  MClass(ceph_fsid_t& f, version_t l) : PaxosServiceMessage(MSG_CLASS, VERSION_T), fsid(f), last(l) {}
+  MClass(ceph_fsid_t& f, version_t l, version_t paxos_version) :
+    PaxosServiceMessage(MSG_CLASS, paxos_version), fsid(f), last(l) {}
 
   const char *get_type_name() { return "class"; }
   void print(ostream& out) {
index 2d8df36a18d3e1638d86fe53df354100cc91beaa..0d215bc8099ba671d7cc7b71172e2c310778ac52 100644 (file)
@@ -23,7 +23,12 @@ public:
   version_t last;
   
   MClassAck() : PaxosServiceMessage(MSG_CLASS_ACK, 0) {}
-  MClassAck(ceph_fsid_t& f, version_t l) : PaxosServiceMessage(MSG_CLASS_ACK, l), fsid(f), last(l) {}
+  MClassAck(ceph_fsid_t& f, version_t l) : PaxosServiceMessage(MSG_CLASS_ACK, VERSION_T),
+                                          fsid(f), last(l) {}
+
+  MClassAck(ceph_fsid_t& f, version_t l, version_t paxos_version) :
+    PaxosServiceMessage(MSG_CLASS_ACK, paxos_version), fsid(f), last(l) {}
+
 
   const char *get_type_name() { return "class_ack"; }
   void print(ostream& out) {