]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
messages/MMonScrub: drop compat cruft
authorSage Weil <sage@redhat.com>
Wed, 12 Apr 2017 02:47:26 +0000 (22:47 -0400)
committerSage Weil <sage@redhat.com>
Fri, 21 Apr 2017 20:00:39 +0000 (16:00 -0400)
v2 was 0a19fd4a2686d07cce632d20d91cf419e41dada6 (pre-infernalis).

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

index 2b9d8c9c172992df780052c36549b978ac184bbc..b66a34d7e1d55048918f94f2c8999825dec3d2a1 100644 (file)
@@ -19,7 +19,7 @@
 class MMonScrub : public Message
 {
   static const int HEAD_VERSION = 2;
-  static const int COMPAT_VERSION = 1;
+  static const int COMPAT_VERSION = 2;
 
 public:
   typedef enum {
@@ -79,10 +79,8 @@ public:
     op = (op_type_t)o;
     ::decode(version, p);
     ::decode(result, p);
-    if (header.version >= 2) {
-      ::decode(num_keys, p);
-      ::decode(key, p);
-    }
+    ::decode(num_keys, p);
+    ::decode(key, p);
   }
 };