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

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

index 175579e1e3e8be563e5b95657106f72795e061f6..030da7c2c8dc702c4234d1f2000a2fdab22bdd35 100644 (file)
@@ -20,7 +20,7 @@
 class MOSDPGTrim : public Message {
 
   static const int HEAD_VERSION = 2;
-  static const int COMPAT_VERSION = 1;
+  static const int COMPAT_VERSION = 2;
 
 public:
   epoch_t epoch;
@@ -53,10 +53,7 @@ public:
     ::decode(epoch, p);
     ::decode(pgid.pgid, p);
     ::decode(trim_to, p);
-    if (header.version >= 2)
-      ::decode(pgid.shard, p);
-    else
-      pgid.shard = shard_id_t::NO_SHARD;
+    ::decode(pgid.shard, p);
   }
 };