]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
messages/MOSDPGScan: remove compat cruft
authorSage Weil <sage@redhat.com>
Wed, 12 Apr 2017 11:55:31 +0000 (07:55 -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/MOSDPGScan.h

index 49f85ed234928d7f97a85f750a4983c59e637b79..e5c25caaa57162f471d8a3f5f57691f890e891cb 100644 (file)
@@ -20,7 +20,7 @@
 class MOSDPGScan : public MOSDFastDispatchOp {
 
   static const int HEAD_VERSION = 2;
-  static const int COMPAT_VERSION = 1;
+  static const int COMPAT_VERSION = 2;
 
 public:
   enum {
@@ -63,15 +63,8 @@ public:
     if (!end.is_max() && end.pool == -1)
       end.pool = pgid.pool();
 
-    if (header.version >= 2) {
-      ::decode(from, p);
-      ::decode(pgid.shard, p);
-    } else {
-      from = pg_shard_t(
-       get_source().num(),
-       shard_id_t::NO_SHARD);
-      pgid.shard = shard_id_t::NO_SHARD;
-    }
+    ::decode(from, p);
+    ::decode(pgid.shard, p);
   }
 
   void encode_payload(uint64_t features) override {