]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
messages/MOSDPing: remove compat cruft
authorSage Weil <sage@redhat.com>
Wed, 12 Apr 2017 11:58:31 +0000 (07:58 -0400)
committerSage Weil <sage@redhat.com>
Fri, 21 Apr 2017 20:00:39 +0000 (16:00 -0400)
v2 was 4e2f0d149d9bb9310dde12c201417d7747c52a85 (pre-argonaut).

Signed-off-by: Sage Weil <sage@redhat.com>
src/messages/MOSDPing.h

index ce75ad848572133b523b7405c5c0fcd1575a0e89..3bb54c5ae0ffd95143f066e26465969c497ad250 100644 (file)
@@ -24,7 +24,7 @@
 class MOSDPing : public Message {
 
   static const int HEAD_VERSION = 2;
-  static const int COMPAT_VERSION = 1;
+  static const int COMPAT_VERSION = 2;
 
  public:
   enum {
@@ -71,8 +71,7 @@ public:
     ::decode(peer_as_of_epoch, p);
     ::decode(op, p);
     ::decode(peer_stat, p);
-    if (header.version >= 2)
-      ::decode(stamp, p);
+    ::decode(stamp, p);
   }
   void encode_payload(uint64_t features) override {
     ::encode(fsid, payload);