This patch is necessary for Jewel only since direct upgrades from Hammer
to Kraken and newer are not supported.
Fixes: http://tracker.ceph.com/issues/19508
Signed-off-by: Alexey Sheplyakov <asheplyakov@mirantis.com>
// this was the first post-hammer thing we added; if it's missing, encode
// like hammer.
v = 21;
+ if (!(features & CEPH_FEATURE_OSD_HITSET_GMT)) {
+ // CEPH_FEATURE_OSD_HITSET_GMT requires pg_pool_t v21 which has
+ // use_gmt_hitset, and two fields added before v21.
+ // See http://tracker.ceph.com/issues/19508
+ v = 17;
+ }
}
ENCODE_START(v, 5, bl);