Introduced-by: 1f5892f82046ebaac3b66dbd8e686825ebb1775c
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
encode(mds_features, bl);
encode(FS_CLUSTER_ID_NONE, bl); /* standby_for_fscid */
encode(false, bl);
- encode(flags, bl);
+ if (v >= 9) {
+ encode(flags, bl);
+ }
ENCODE_FINISH(bl);
}
void MDSMap::mds_info_t::decode(bufferlist::const_iterator& bl)
{
- DECODE_START_LEGACY_COMPAT_LEN(8, 4, 4, bl);
+ DECODE_START_LEGACY_COMPAT_LEN(9, 4, 4, bl);
decode(global_id, bl);
decode(name, bl);
decode(rank, bl);
bool standby_replay;
decode(standby_replay, bl);
}
- if (struct_v >= 8) {
+ if (struct_v >= 9) {
decode(flags, bl);
}
DECODE_FINISH(bl);