Only decode the new field if it is a new struct.
Fixes: #8804
Backport: firefly
Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
(cherry picked from commit
c4afaf9dabd261853a44b2e08f0911c075c1cd3a)
::decode(start_ofs, bl);
::decode(part_size, bl);
::decode(stripe_max_size, bl);
- ::decode(override_prefix, bl);
+ if (struct_v >= 2)
+ ::decode(override_prefix, bl);
DECODE_FINISH(bl);
}
void dump(Formatter *f) const;