otherwise we have following warning:
warning: suggest parentheses around operand of ‘!’ or change ‘|’ to
‘||’ or ‘!’ to ‘~’ [-Wparentheses]
Signed-off-by: Kefu Chai <kchai@redhat.com>
dout(10) << "write_superblock " << superblock << dendl;
//hack: at minimum it's using the baseline feature set
- if (!superblock.compat_features.incompat.mask |
- CEPH_OSD_FEATURE_INCOMPAT_BASE.id)
+ if (!superblock.compat_features.incompat.contains(CEPH_OSD_FEATURE_INCOMPAT_BASE))
superblock.compat_features.incompat.insert(CEPH_OSD_FEATURE_INCOMPAT_BASE);
bufferlist bl;