If the target features are missing the new OSDOp encoding, the
first feature we added post-hammer, encode like hammer.
Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit
2f8cfb632823ba4e63eaff394392d6af7979d7c8)
}
uint8_t v = 24;
+ if (!(features & CEPH_FEATURE_NEW_OSDOP_ENCODING)) {
+ // this was the first post-hammer thing we added; if it's missing, encode
+ // like hammer.
+ v = 21;
+ }
+
ENCODE_START(v, 5, bl);
::encode(type, bl);
::encode(size, bl);