For OSD_PGLOG_HARDLIMIT, we have reused a jewel feature bit that was retired
in luminous. Therefore, we need to check the release version for
>= CEPH_RELEASE_LUMINOUS, before using it.
Signed-off-by: Neha Ojha <nojha@redhat.com>
(cherry picked from commit
6abcc20dca0ee5a08a3fe7c560750f904fe3fa65)
Conflicts:
src/mon/OSDMonitor.cc: trivial resolution
}
}
+ // The release check here is required because for OSD_PGLOG_HARDLIMIT,
+ // we are reusing a jewel feature bit that was retired in luminous.
if (osdmap.require_osd_release >= CEPH_RELEASE_LUMINOUS &&
osdmap.test_flag(CEPH_OSDMAP_PGLOG_HARDLIMIT) &&
!(m->osd_features & CEPH_FEATURE_OSD_PGLOG_HARDLIMIT)) {
err = -EPERM;
goto reply;
}
+ // The release check here is required because for OSD_PGLOG_HARDLIMIT,
+ // we are reusing a jewel feature bit that was retired in luminous.
if (osdmap.require_osd_release >= CEPH_RELEASE_LUMINOUS &&
(HAVE_FEATURE(osdmap.get_up_osd_features(), OSD_PGLOG_HARDLIMIT)
|| sure == "--yes-i-really-mean-it")) {