osd: Introduce macro to police use of significant features.
return;
}
- uint8_t v = 31;
+ uint8_t v = 32;
// NOTE: any new encoding dependencies must be reflected by
// SIGNIFICANT_FEATURES
- if (!HAVE_FEATURE(features, SERVER_TENTACLE)) {
- if (!(features & CEPH_FEATURE_NEW_OSDOP_ENCODING)) {
+ if (!HAVE_SIGNIFICANT_FEATURE(features, SERVER_TENTACLE)) {
+ if (!HAVE_SIGNIFICANT_FEATURE(features, NEW_OSDOP_ENCODING)) {
// this was the first post-hammer thing we added; if it's missing, encode
// like hammer.
v = 21;