]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osd/osd_types: bump up some encoding versions
authorxie xingguo <xie.xingguo@zte.com.cn>
Tue, 27 Aug 2019 08:09:14 +0000 (16:09 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Tue, 27 Aug 2019 08:10:50 +0000 (16:10 +0800)
it does not really pose a problem for now since we only check it
against the compat version, but it's good to keep it up to date.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/osd/osd_types.cc

index e2bcb31e314f538215fb7e7bbaf82186215f1d97..e908e054f0224c74432736f270c7e5e046372111 100644 (file)
@@ -4469,7 +4469,7 @@ void pg_log_entry_t::encode(ceph::buffer::list &bl) const
 
 void pg_log_entry_t::decode(ceph::buffer::list::const_iterator &bl)
 {
-  DECODE_START_LEGACY_COMPAT_LEN(12, 4, 4, bl);
+  DECODE_START_LEGACY_COMPAT_LEN(13, 4, 4, bl);
   decode(op, bl);
   if (struct_v < 2) {
     sobject_t old_soid;
@@ -4526,7 +4526,7 @@ void pg_log_entry_t::decode(ceph::buffer::list::const_iterator &bl)
   if (struct_v >= 12 && !extra_reqids.empty())
     decode(extra_reqid_return_codes, bl);
   if (struct_v >= 13)
-    ::decode(clean_regions, bl);
+    decode(clean_regions, bl);
   else
     clean_regions.mark_fully_dirty();
   DECODE_FINISH(bl);
@@ -4957,7 +4957,7 @@ void object_copy_data_t::encode(ceph::buffer::list& bl, uint64_t features) const
 
 void object_copy_data_t::decode(ceph::buffer::list::const_iterator& bl)
 {
-  DECODE_START(7, bl);
+  DECODE_START(8, bl);
   if (struct_v < 5) {
     // old
     decode(size, bl);