]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
osd/osd_types: remove pg_notify_t compat cruft
authorSage Weil <sage@redhat.com>
Wed, 12 Apr 2017 13:20:31 +0000 (09:20 -0400)
committerSage Weil <sage@redhat.com>
Fri, 21 Apr 2017 20:00:40 +0000 (16:00 -0400)
Signed-off-by: Sage Weil <sage@redhat.com>
src/osd/osd_types.cc

index 922d48c6ddd8fcdf2537184d26200aa7def9eed9..e87c4cacc7a3ac10dd38505bd9e7b7dde0d7339f 100644 (file)
@@ -2933,7 +2933,7 @@ void pg_info_t::generate_test_instances(list<pg_info_t*>& o)
 // -- pg_notify_t --
 void pg_notify_t::encode(bufferlist &bl) const
 {
-  ENCODE_START(2, 1, bl);
+  ENCODE_START(2, 2, bl);
   ::encode(query_epoch, bl);
   ::encode(epoch_sent, bl);
   ::encode(info, bl);
@@ -2948,13 +2948,8 @@ void pg_notify_t::decode(bufferlist::iterator &bl)
   ::decode(query_epoch, bl);
   ::decode(epoch_sent, bl);
   ::decode(info, bl);
-  if (struct_v >= 2) {
-    ::decode(to, bl);
-    ::decode(from, bl);
-  } else {
-    to = shard_id_t::NO_SHARD;
-    from = shard_id_t::NO_SHARD;
-  }
+  ::decode(to, bl);
+  ::decode(from, bl);
   DECODE_FINISH(bl);
 }