]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: Decode use_gmt_hitset with a unique version
authorDavid Zafman <dzafman@redhat.com>
Thu, 27 Aug 2015 18:24:25 +0000 (11:24 -0700)
committerKefu Chai <kchai@redhat.com>
Fri, 9 Oct 2015 10:20:32 +0000 (03:20 -0700)
Signed-off-by: David Zafman <dzafman@redhat.com>
(cherry picked from commit 2bc5a48f4c5d3667213be3a7b5a0e0f5ef9daf4f)

Conflicts:
src/osd/osd_types.cc
minor changes to resolve conflicts

src/osd/osd_types.cc

index 7253160014d301b7c309c9420e331da699f438b9..5f15bcf74354e1676ec43f303dee1e2a813cfd65 100644 (file)
@@ -1239,7 +1239,7 @@ void pg_pool_t::encode(bufferlist& bl, uint64_t features) const
     return;
   }
 
-  ENCODE_START(17, 5, bl);
+  ENCODE_START(21, 5, bl);
   ::encode(type, bl);
   ::encode(size, bl);
   ::encode(crush_ruleset, bl);
@@ -1289,7 +1289,7 @@ void pg_pool_t::encode(bufferlist& bl, uint64_t features) const
 
 void pg_pool_t::decode(bufferlist::iterator& bl)
 {
-  DECODE_START_LEGACY_COMPAT_LEN(17, 5, 5, bl);
+  DECODE_START_LEGACY_COMPAT_LEN(21, 5, 5, bl);
   ::decode(type, bl);
   ::decode(size, bl);
   ::decode(crush_ruleset, bl);
@@ -1408,6 +1408,8 @@ void pg_pool_t::decode(bufferlist::iterator& bl)
   if (struct_v >= 20) {
     uint32_t dummy;
     ::decode(dummy, bl);
+  }
+  if (struct_v >= 21) {
     ::decode(use_gmt_hitset, bl);
   } else {
     use_gmt_hitset = false;