Signed-off-by: Sage Weil <sage@redhat.com>
<< " upgrading" << dendl;
exit(0);
}
- if (!osdmon()->osdmap.test_flag(CEPH_OSDMAP_PURGED_SNAPDIRS)) {
+ if (!osdmon()->osdmap.test_flag(CEPH_OSDMAP_PURGED_SNAPDIRS) ||
+ !osdmon()->osdmap.test_flag(CEPH_OSDMAP_RECOVERY_DELETES)) {
derr << __func__ << " existing cluster has not completed a full luminous"
<< " scrub to purge legacy snapdir objects; please scrub before"
<< " upgrading beyond luminous." << dendl;
goto reply;
}
pending_inc.new_require_osd_release = rel;
- if (rel >= CEPH_RELEASE_LUMINOUS &&
- !osdmap.test_flag(CEPH_OSDMAP_RECOVERY_DELETES)) {
- return prepare_set_flag(op, CEPH_OSDMAP_RECOVERY_DELETES);
- }
goto update;
} else if (prefix == "osd cluster_snap") {
// ** DISABLE THIS FOR NOW **