]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: do not make pg_pool_t incompat when hit_sets are enabled
authorSage Weil <sage@inktank.com>
Thu, 27 Mar 2014 00:47:06 +0000 (17:47 -0700)
committerSage Weil <sage@inktank.com>
Thu, 27 Mar 2014 00:47:06 +0000 (17:47 -0700)
If we enable HitSet tracking, the OSD needs to know this, but clients do
not care.  Setting the compat version is too heavyweight as it locks out
older kernels (*any* currents, currently) who are unaffected by the new
fields.

Signed-off-by: Sage Weil <sage@inktank.com>
src/osd/osd_types.cc

index f57ab0cf242bdc21234b080f4e0487661bf6ce6d..c183dca8e3be700e610bf19e56b835c30b2432ff 100644 (file)
@@ -1071,8 +1071,6 @@ void pg_pool_t::encode(bufferlist& bl, uint64_t features) const
   ::encode(read_tier, bl);
   ::encode(write_tier, bl);
   ::encode(properties, bl);
-  if (hit_set_params.get_type() != HitSet::TYPE_NONE)
-    encode_compat = MAX(encode_compat, 11); // need to be able to understand all the data!
   ::encode(hit_set_params, bl);
   ::encode(hit_set_period, bl);
   ::encode(hit_set_count, bl);
@@ -1084,7 +1082,7 @@ void pg_pool_t::encode(bufferlist& bl, uint64_t features) const
   ::encode(cache_min_flush_age, bl);
   ::encode(cache_min_evict_age, bl);
   ::encode(erasure_code_profile, bl);
-  ENCODE_FINISH_NEW_COMPAT(bl, encode_compat);
+  ENCODE_FINISH(bl);
 }
 
 void pg_pool_t::decode(bufferlist::iterator& bl)