{
uint8_t target_v = 9; // if bumping this, be aware of stretch_mode target_v 10!
- uint8_t new_compat_v = 0;
if (!HAVE_FEATURE(features, SERVER_LUMINOUS)) {
target_v = 2;
} else if (!HAVE_FEATURE(features, SERVER_NAUTILUS)) {
if (change_stretch_mode) {
ceph_assert(target_v >= 9);
target_v = std::max((uint8_t)10, target_v);
- new_compat_v = std::max((uint8_t)10, std::max(new_compat_v, struct_compat));
}
ENCODE_START(target_v, 1, bl); // extended, osd-only data
if (target_v < 7) {
encode(new_stretch_mode_bucket, bl);
encode(stretch_mode_enabled, bl);
}
- ENCODE_FINISH_NEW_COMPAT(bl, new_compat_v); // osd-only data
+ ENCODE_FINISH(bl); // osd-only data
}
crc_offset = bl.length();
// NOTE: any new encoding dependencies must be reflected by
// SIGNIFICANT_FEATURES
uint8_t target_v = 9; // when bumping this, be aware of stretch_mode target_v 10!
- uint8_t new_compat_v = 0;
if (!HAVE_FEATURE(features, SERVER_LUMINOUS)) {
target_v = 1;
} else if (!HAVE_FEATURE(features, SERVER_MIMIC)) {
if (stretch_mode_enabled) {
ceph_assert(target_v >= 9);
target_v = std::max((uint8_t)10, target_v);
- new_compat_v = std::max((uint8_t)10, std::max(new_compat_v, struct_compat));
}
ENCODE_START(target_v, 1, bl); // extended, osd-only data
if (target_v < 7) {
encode(recovering_stretch_mode, bl);
encode(stretch_mode_bucket, bl);
}
- ENCODE_FINISH_NEW_COMPAT(bl, new_compat_v); // osd-only data
+ ENCODE_FINISH(bl); // osd-only data
}
crc_offset = bl.length();