if (!map.available) {
auto level = HEALTH_WARN;
// do not escalate to ERR if they are still upgrading to jewel.
- if (mon->osdmon()->osdmap.test_flag(CEPH_OSDMAP_REQUIRE_LUMINOUS)) {
+ if (mon->osdmon()->osdmap.require_osd_release >= CEPH_RELEASE_LUMINOUS) {
utime_t now = ceph_clock_now();
if (first_seen_inactive != utime_t() &&
now - first_seen_inactive > g_conf->mon_mgr_inactive_grace) {
Formatter *f = Formatter::create("json");
// hide mgr commands until luminous upgrade is complete
bool hide_mgr_flag =
- !osdmon()->osdmap.test_flag(CEPH_OSDMAP_REQUIRE_LUMINOUS);
+ osdmon()->osdmap.require_osd_release < CEPH_RELEASE_LUMINOUS;
format_command_descriptions(leader_supported_mon_commands,
leader_supported_mon_commands_size, f, &rdata,
hide_mgr_flag);
<< "cmd=" << m->cmd << ": dispatch";
if (mon_cmd->is_mgr() &&
- osdmon()->osdmap.test_flag(CEPH_OSDMAP_REQUIRE_LUMINOUS)) {
+ osdmon()->osdmap.require_osd_release >= CEPH_RELEASE_LUMINOUS) {
const auto& hdr = m->get_header();
uint64_t size = hdr.front_len + hdr.middle_len + hdr.data_len;
uint64_t max =
dout(1) << __func__ << " setting backfillfull_ratio = "
<< pending_inc.new_backfillfull_ratio << dendl;
}
- if (!osdmap.test_flag(CEPH_OSDMAP_REQUIRE_LUMINOUS)) {
+ if (osdmap.require_osd_release < CEPH_RELEASE_LUMINOUS) {
// transition full ratios from PGMap to OSDMap (on upgrade)
PGMap *pg_map = &mon->pgmon()->pg_map;
if (osdmap.full_ratio != pg_map->full_ratio) {
tmp.deepish_copy_from(osdmap);
tmp.apply_incremental(pending_inc);
- if (tmp.test_flag(CEPH_OSDMAP_REQUIRE_LUMINOUS)) {
+ if (tmp.require_osd_release >= CEPH_RELEASE_LUMINOUS) {
// set or clear full/nearfull?
int full, backfill, nearfull;
tmp.count_full_nearfull_osds(&full, &backfill, &nearfull);
tmp.apply_incremental(pending_inc);
// determine appropriate features
- if (!tmp.test_flag(CEPH_OSDMAP_REQUIRE_LUMINOUS)) {
+ if (tmp.require_osd_release < CEPH_RELEASE_LUMINOUS) {
dout(10) << __func__ << " encoding without feature SERVER_LUMINOUS"
<< dendl;
features &= ~CEPH_FEATURE_SERVER_LUMINOUS;
}
- if (!tmp.test_flag(CEPH_OSDMAP_REQUIRE_JEWEL)) {
- dout(10) << __func__ << " encoding without feature SERVER_JEWEL" << dendl;
- features &= ~CEPH_FEATURE_SERVER_JEWEL;
- }
- if (!tmp.test_flag(CEPH_OSDMAP_REQUIRE_KRAKEN)) {
+ if (tmp.require_osd_release < CEPH_RELEASE_KRAKEN) {
dout(10) << __func__ << " encoding without feature SERVER_KRAKEN | "
<< "MSG_ADDR2" << dendl;
features &= ~(CEPH_FEATURE_SERVER_KRAKEN |
CEPH_FEATURE_MSG_ADDR2);
}
+ if (tmp.require_osd_release < CEPH_RELEASE_JEWEL) {
+ dout(10) << __func__ << " encoding without feature SERVER_JEWEL" << dendl;
+ features &= ~CEPH_FEATURE_SERVER_JEWEL;
+ }
dout(10) << __func__ << " encoding full map with " << features << dendl;
bufferlist fullbl;
if (mon->monmap->get_required_features().contains_all(
ceph::features::mon::FEATURE_LUMINOUS)) {
auto pending_creatings = update_pending_pgs(pending_inc);
- if (!osdmap.test_flag(CEPH_OSDMAP_REQUIRE_LUMINOUS)) {
+ if (osdmap.require_osd_release < CEPH_RELEASE_LUMINOUS) {
dout(7) << __func__ << " in the middle of upgrading, "
<< " trimming pending creating_pgs using pgmap" << dendl;
trim_creating_pgs(&pending_creatings, mon->pgmon()->pg_map);
goto ignore;
}
- if (osdmap.test_flag(CEPH_OSDMAP_REQUIRE_LUMINOUS) &&
+ if (osdmap.require_osd_release >= CEPH_RELEASE_LUMINOUS &&
!HAVE_FEATURE(m->osd_features, SERVER_LUMINOUS)) {
mon->clog->info() << "disallowing boot of OSD "
<< m->get_orig_source_inst()
goto ignore;
}
- if (osdmap.test_flag(CEPH_OSDMAP_REQUIRE_JEWEL) &&
+ if (osdmap.require_osd_release >= CEPH_RELEASE_JEWEL &&
!(m->osd_features & CEPH_FEATURE_SERVER_JEWEL)) {
mon->clog->info() << "disallowing boot of OSD "
<< m->get_orig_source_inst()
goto ignore;
}
- if (osdmap.test_flag(CEPH_OSDMAP_REQUIRE_KRAKEN) &&
+ if (osdmap.require_osd_release >= CEPH_RELEASE_KRAKEN &&
!HAVE_FEATURE(m->osd_features, SERVER_KRAKEN)) {
mon->clog->info() << "disallowing boot of OSD "
<< m->get_orig_source_inst()
// make sure upgrades stop at luminous
if (HAVE_FEATURE(m->osd_features, SERVER_M) &&
- !osdmap.test_flag(CEPH_OSDMAP_REQUIRE_LUMINOUS)) {
+ osdmap.require_osd_release < CEPH_RELEASE_LUMINOUS) {
mon->clog->info() << "disallowing boot of post-luminous OSD "
<< m->get_orig_source_inst()
- << " because require_luminous_osds is not set";
+ << " because require_osd_release < luminous";
goto ignore;
}
// make sure upgrades stop at jewel
if (HAVE_FEATURE(m->osd_features, SERVER_KRAKEN) &&
- !osdmap.test_flag(CEPH_OSDMAP_REQUIRE_JEWEL)) {
+ osdmap.require_osd_release < CEPH_RELEASE_JEWEL) {
mon->clog->info() << "disallowing boot of post-jewel OSD "
<< m->get_orig_source_inst()
- << " because require_jewel_osds is not set";
+ << " because require_osd_release < jewel";
goto ignore;
}
bool do_propose = false;
utime_t now = ceph_clock_now();
- if (osdmap.test_flag(CEPH_OSDMAP_REQUIRE_LUMINOUS) &&
+ if (osdmap.require_osd_release >= CEPH_RELEASE_LUMINOUS &&
mon->monmap->get_required_features().contains_all(
ceph::features::mon::FEATURE_LUMINOUS)) {
if (handle_osd_timeouts(now, last_osd_report)) {
}
// if map full setting has changed, get that info out there!
- if (!osdmap.test_flag(CEPH_OSDMAP_REQUIRE_LUMINOUS) &&
+ if (osdmap.require_osd_release < CEPH_RELEASE_LUMINOUS &&
mon->pgmon()->is_readable()) {
// for pre-luminous compat only!
if (!mon->pgmon()->pg_map.full_osds.empty()) {
}
}
- if (osdmap.test_flag(CEPH_OSDMAP_REQUIRE_LUMINOUS)) {
+ if (osdmap.require_osd_release >= CEPH_RELEASE_LUMINOUS) {
// An osd could configure failsafe ratio, to something different
// but for now assume it is the same here.
float fsr = g_conf->osd_failsafe_full_ratio;
if (g_conf->mon_debug_no_require_luminous) {
// ignore these checks
} else if (HAVE_FEATURE(osdmap.get_up_osd_features(), SERVER_LUMINOUS) &&
- !osdmap.test_flag(CEPH_OSDMAP_REQUIRE_LUMINOUS)) {
- string msg = "all OSDs are running luminous or later but the"
- " 'require_luminous_osds' osdmap flag is not set";
+ osdmap.require_osd_release < CEPH_RELEASE_LUMINOUS) {
+ string msg = "all OSDs are running luminous or later but"
+ " require_osd_release < luminous";
summary.push_back(make_pair(HEALTH_WARN, msg));
if (detail) {
detail->push_back(make_pair(HEALTH_WARN, msg));
}
} else if (HAVE_FEATURE(osdmap.get_up_osd_features(), SERVER_KRAKEN) &&
- !osdmap.test_flag(CEPH_OSDMAP_REQUIRE_KRAKEN)) {
- string msg = "all OSDs are running kraken or later but the"
- " 'require_kraken_osds' osdmap flag is not set";
+ osdmap.require_osd_release < CEPH_RELEASE_KRAKEN) {
+ string msg = "all OSDs are running kraken or later but"
+ " require_osd_release < kraken";
summary.push_back(make_pair(HEALTH_WARN, msg));
if (detail) {
detail->push_back(make_pair(HEALTH_WARN, msg));
}
} else if (HAVE_FEATURE(osdmap.get_up_osd_features(), SERVER_JEWEL) &&
- !osdmap.test_flag(CEPH_OSDMAP_REQUIRE_JEWEL)) {
- string msg = "all OSDs are running jewel or later but the"
- " 'require_jewel_osds' osdmap flag is not set";
+ osdmap.require_osd_release < CEPH_RELEASE_JEWEL) {
+ string msg = "all OSDs are running jewel or later but"
+ " require_osd_release < jewel";
summary.push_back(make_pair(HEALTH_WARN, msg));
if (detail) {
detail->push_back(make_pair(HEALTH_WARN, msg));
} else if (prefix == "osd set-full-ratio" ||
prefix == "osd set-backfillfull-ratio" ||
prefix == "osd set-nearfull-ratio") {
- if (!osdmap.test_flag(CEPH_OSDMAP_REQUIRE_LUMINOUS)) {
- ss << "you must complete the upgrade and set require_luminous_osds before"
- << " using the new interface";
+ if (osdmap.require_osd_release < CEPH_RELEASE_LUMINOUS) {
+ ss << "you must complete the upgrade and set require_osd_release ="
+ << "luminous before using the new interface";
err = -EPERM;
goto reply;
}
get_last_committed() + 1));
return true;
} else if (prefix == "osd set-require-min-compat-client") {
- if (!osdmap.test_flag(CEPH_OSDMAP_REQUIRE_LUMINOUS)) {
- ss << "you must complete the upgrade and set require_luminous_osds before"
- << " using the new interface";
+ if (osdmap.require_osd_release < CEPH_RELEASE_LUMINOUS) {
+ ss << "you must complete the upgrade and set require_osd_release ="
+ << "luminous before using the new interface";
err = -EPERM;
goto reply;
}
ss << "set " << pgid << " primary_temp mapping to " << osd;
goto update;
} else if (prefix == "osd pg-upmap") {
- if (!osdmap.test_flag(CEPH_OSDMAP_REQUIRE_LUMINOUS)) {
- ss << "you must set the require_luminous_osds flag to use this feature";
+ if (osdmap.require_osd_release < CEPH_RELEASE_LUMINOUS) {
+ ss << "you must complete the upgrade and set require_osd_release ="
+ << "luminous before using the new interface";
err = -EPERM;
goto reply;
}
ss << "set " << pgid << " pg_upmap mapping to " << new_pg_upmap;
goto update;
} else if (prefix == "osd rm-pg-upmap") {
- if (!osdmap.test_flag(CEPH_OSDMAP_REQUIRE_LUMINOUS)) {
- ss << "you must set the require_luminous_osds flag to use this feature";
+ if (osdmap.require_osd_release < CEPH_RELEASE_LUMINOUS) {
+ ss << "you must complete the upgrade and set require_osd_release ="
+ << "luminous before using the new interface";
err = -EPERM;
goto reply;
}
ss << "clear " << pgid << " pg_upmap mapping";
goto update;
} else if (prefix == "osd pg-upmap-items") {
- if (!osdmap.test_flag(CEPH_OSDMAP_REQUIRE_LUMINOUS)) {
- ss << "you must set the require_luminous_osds flag to use this feature";
+ if (osdmap.require_osd_release < CEPH_RELEASE_LUMINOUS) {
+ ss << "you must complete the upgrade and set require_osd_release ="
+ << "luminous before using the new interface";
err = -EPERM;
goto reply;
}
ss << "set " << pgid << " pg_upmap_items mapping to " << new_pg_upmap_items;
goto update;
} else if (prefix == "osd rm-pg-upmap-items") {
- if (!osdmap.test_flag(CEPH_OSDMAP_REQUIRE_LUMINOUS)) {
- ss << "you must set the require_luminous_osds flag to use this feature";
+ if (osdmap.require_osd_release < CEPH_RELEASE_LUMINOUS) {
+ ss << "you must complete the upgrade and set require_osd_release ="
+ << "luminous before using the new interface";
err = -EPERM;
goto reply;
}
}
float fratio;
- if (osdmap.test_flag(CEPH_OSDMAP_REQUIRE_LUMINOUS) && osdmap.get_full_ratio() > 0) {
+ if (osdmap.require_osd_release >= CEPH_RELEASE_LUMINOUS &&
+ osdmap.get_full_ratio() > 0) {
fratio = osdmap.get_full_ratio();
} else if (full_ratio > 0) {
fratio = full_ratio;
goto update;
} else if (prefix == "pg set_full_ratio" ||
prefix == "pg set_nearfull_ratio") {
- if (mon->osdmon()->osdmap.test_flag(CEPH_OSDMAP_REQUIRE_LUMINOUS)) {
+ if (mon->osdmon()->osdmap.require_osd_release >= CEPH_RELEASE_LUMINOUS) {
ss << "please use the new luminous interfaces"
<< " ('osd set-full-ratio' and 'osd set-nearfull-ratio')";
r = -EPERM;
}
// full/nearfull
- if (!mon->osdmon()->osdmap.test_flag(CEPH_OSDMAP_REQUIRE_LUMINOUS)) {
+ if (mon->osdmon()->osdmap.require_osd_release < CEPH_RELEASE_LUMINOUS) {
check_full_osd_health(summary, detail, pg_map.full_osds, "full",
HEALTH_ERR);
check_full_osd_health(summary, detail, pg_map.nearfull_osds, "near full",
op->plan,
ec_impl,
get_parent()->get_info().pgid.pgid,
- !get_osdmap()->test_flag(CEPH_OSDMAP_REQUIRE_KRAKEN),
+ (get_osdmap()->require_osd_release < CEPH_RELEASE_KRAKEN),
sinfo,
op->remote_read_result,
op->log_entries,
if (op->version > committed_to)
committed_to = op->version;
- if (get_osdmap()->test_flag(CEPH_OSDMAP_REQUIRE_KRAKEN)) {
+ if (get_osdmap()->require_osd_release >= CEPH_RELEASE_KRAKEN) {
if (op->version > get_parent()->get_log().get_can_rollback_to() &&
waiting_reads.empty() &&
waiting_commit.empty()) {
float full_ratio = std::max(osdmap->get_full_ratio(), backfillfull_ratio);
float failsafe_ratio = std::max(get_failsafe_full_ratio(), full_ratio);
- if (!osdmap->test_flag(CEPH_OSDMAP_REQUIRE_LUMINOUS)) {
+ if (osdmap->require_osd_release < CEPH_RELEASE_LUMINOUS) {
// use the failsafe for nearfull and full; the mon isn't using the
// flags anyway because we're mid-upgrade.
full_ratio = failsafe_ratio;
} else if (!osdmap->test_flag(CEPH_OSDMAP_SORTBITWISE)) {
derr << "osdmap SORTBITWISE OSDMap flag is NOT set; please set it"
<< dendl;
- } else if (!osdmap->test_flag(CEPH_OSDMAP_REQUIRE_JEWEL)) {
+ } else if (osdmap->require_osd_release < CEPH_RELEASE_JEWEL) {
derr << "osdmap REQUIRE_JEWEL OSDMap flag is NOT set; please set it"
<< dendl;
} else if (!monc->monmap.get_required_features().contains_all(
if (entity_type == CEPH_ENTITY_TYPE_OSD) {
const uint64_t jewel_features = CEPH_FEATURE_SERVER_JEWEL;
- if (test_flag(CEPH_OSDMAP_REQUIRE_JEWEL)) {
+ if (require_osd_release >= CEPH_RELEASE_JEWEL) {
features |= jewel_features;
}
mask |= jewel_features;
const uint64_t kraken_features = CEPH_FEATUREMASK_SERVER_KRAKEN
| CEPH_FEATURE_MSG_ADDR2;
- if (test_flag(CEPH_OSDMAP_REQUIRE_KRAKEN)) {
+ if (require_osd_release >= CEPH_RELEASE_KRAKEN) {
features |= kraken_features;
}
mask |= kraken_features;
}
dout(20) << __func__ << "find_object_context got error " << r << dendl;
if (op->may_write() &&
- get_osdmap()->test_flag(CEPH_OSDMAP_REQUIRE_KRAKEN)) {
+ get_osdmap()->require_osd_release >= CEPH_RELEASE_KRAKEN) {
record_write_error(op, oid, nullptr, r);
} else {
osd->reply_op_error(op, r);
dout(20) << __func__ << " returned an error: " << r << dendl;
close_op_ctx(ctx);
if (op->may_write() &&
- get_osdmap()->test_flag(CEPH_OSDMAP_REQUIRE_KRAKEN)) {
+ get_osdmap()->require_osd_release >= CEPH_RELEASE_KRAKEN) {
record_write_error(op, oid, nullptr, r);
} else {
osd->reply_op_error(op, r);
SnapSet& snapset = obc->ssc->snapset;
bool legacy = snapset.is_legacy() ||
- !get_osdmap()->test_flag(CEPH_OSDMAP_REQUIRE_LUMINOUS);
+ get_osdmap()->require_osd_release < CEPH_RELEASE_LUMINOUS;
object_info_t &coi = obc->obs.oi;
set<snapid_t> old_snaps;
result = -ENOENT;
break;
}
- if (!get_osdmap()->test_flag(CEPH_OSDMAP_REQUIRE_LUMINOUS)) {
+ if (get_osdmap()->require_osd_release < CEPH_RELEASE_LUMINOUS) {
result = -EOPNOTSUPP;
break;
}
whiteout = true;
}
bool legacy;
- if (get_osdmap()->test_flag(CEPH_OSDMAP_REQUIRE_LUMINOUS)) {
+ if (get_osdmap()->require_osd_release >= CEPH_RELEASE_LUMINOUS) {
legacy = false;
// in luminous or later, we can't delete the head if there are
// clones. we trust the caller passing no_whiteout has already
snap_oi->copy_user_bits(ctx->obs->oi);
bool legacy = ctx->new_snapset.is_legacy() ||
- !get_osdmap()->test_flag(CEPH_OSDMAP_REQUIRE_LUMINOUS);
+ get_osdmap()->require_osd_release < CEPH_RELEASE_LUMINOUS;
if (legacy) {
snap_oi->legacy_snaps = snaps;
}
// update snapset with latest snap context
ctx->new_snapset.seq = snapc.seq;
ctx->new_snapset.snaps = snapc.snaps;
- if (!get_osdmap()->test_flag(CEPH_OSDMAP_REQUIRE_LUMINOUS)) {
+ if (get_osdmap()->require_osd_release < CEPH_RELEASE_LUMINOUS) {
// pessimistic assumption that this is a net-new legacy SnapSet
ctx->delta_stats.num_legacy_snapsets++;
ctx->new_snapset.head_exists = ctx->new_obs.exists;
int result = do_osd_ops(ctx, ctx->ops);
if (result < 0) {
if (ctx->op->may_write() &&
- get_osdmap()->test_flag(CEPH_OSDMAP_REQUIRE_KRAKEN)) {
+ get_osdmap()->require_osd_release >= CEPH_RELEASE_KRAKEN) {
// need to save the error code in the pg log, to detect dup ops,
// but do nothing else
ctx->update_log_only = true;
if (ctx->op_t->empty() && !ctx->modify) {
unstable_stats.add(ctx->delta_stats);
if (ctx->op->may_write() &&
- get_osdmap()->test_flag(CEPH_OSDMAP_REQUIRE_KRAKEN)) {
+ get_osdmap()->require_osd_release >= CEPH_RELEASE_KRAKEN) {
ctx->update_log_only = true;
}
return result;
info.pgid.pool(), soid.get_namespace());
dout(10) << " final snapset " << ctx->new_snapset
<< " in " << snapoid << dendl;
- assert(!get_osdmap()->test_flag(CEPH_OSDMAP_REQUIRE_LUMINOUS));
+ assert(get_osdmap()->require_osd_release < CEPH_RELEASE_LUMINOUS);
ctx->log.push_back(pg_log_entry_t(pg_log_entry_t::MODIFY, snapoid,
ctx->at_version,
eversion_t(),
}
bool legacy_snapset = ctx->new_snapset.is_legacy() ||
- !get_osdmap()->test_flag(CEPH_OSDMAP_REQUIRE_LUMINOUS);
+ get_osdmap()->require_osd_release < CEPH_RELEASE_LUMINOUS;
// append to log
ctx->log.push_back(pg_log_entry_t(log_op_type, soid, ctx->at_version,
tctx->extra_reqids = results->reqids;
bool legacy_snapset = tctx->new_snapset.is_legacy() ||
- !get_osdmap()->test_flag(CEPH_OSDMAP_REQUIRE_LUMINOUS);
+ get_osdmap()->require_osd_release < CEPH_RELEASE_LUMINOUS;
if (whiteout) {
// create a whiteout
assert(tctx->new_obs.oi.soid.snap == CEPH_NOSNAP);
tctx->new_snapset.from_snap_set(
results->snapset,
- !get_osdmap()->test_flag(CEPH_OSDMAP_REQUIRE_LUMINOUS));
+ get_osdmap()->require_osd_release < CEPH_RELEASE_LUMINOUS);
}
tctx->new_snapset.head_exists = true;
dout(20) << __func__ << " new_snapset " << tctx->new_snapset << dendl;
boost::intrusive_ptr<RepGather> repop;
boost::optional<std::function<void(void)> > on_complete;
- if (get_osdmap()->test_flag(CEPH_OSDMAP_REQUIRE_JEWEL)) {
+ if (get_osdmap()->require_osd_release >= CEPH_RELEASE_JEWEL) {
repop = new_repop(
version,
r,
if (peer == pg_whoami) continue;
assert(peer_missing.count(peer));
assert(peer_info.count(peer));
- if (get_osdmap()->test_flag(CEPH_OSDMAP_REQUIRE_JEWEL)) {
+ if (get_osdmap()->require_osd_release >= CEPH_RELEASE_JEWEL) {
assert(repop);
MOSDPGUpdateLogMissing *m = new MOSDPGUpdateLogMissing(
entries,
peer.osd, m, get_osdmap()->get_epoch());
}
}
- if (get_osdmap()->test_flag(CEPH_OSDMAP_REQUIRE_JEWEL)) {
+ if (get_osdmap()->require_osd_release >= CEPH_RELEASE_JEWEL) {
ceph_tid_t rep_tid = repop->rep_tid;
waiting_on.insert(pg_whoami);
log_entry_update_waiting_on.insert(
unlock();
});
- if (get_osdmap()->test_flag(CEPH_OSDMAP_REQUIRE_KRAKEN)) {
+ if (get_osdmap()->require_osd_release >= CEPH_RELEASE_KRAKEN) {
t.register_on_commit(complete);
} else {
/* Hack to work around the fact that ReplicatedBackend sends
{
pg_log_entry_t e(pg_log_entry_t::LOST_DELETE, oid, v, m->second.need,
0, osd_reqid_t(), mtime, 0);
- if (get_osdmap()->test_flag(CEPH_OSDMAP_REQUIRE_JEWEL)) {
+ if (get_osdmap()->require_osd_release >= CEPH_RELEASE_JEWEL) {
if (pool.info.require_rollback()) {
e.mod_desc.try_rmobject(v.version);
} else {
head_error.set_head_mismatch();
}
- if (get_osdmap()->test_flag(CEPH_OSDMAP_REQUIRE_LUMINOUS)) {
+ if (get_osdmap()->require_osd_release >= CEPH_RELEASE_LUMINOUS) {
if (soid.is_snapdir()) {
dout(10) << " will move snapset to head from " << soid << dendl;
snapset_to_repair[soid.get_head()] = *snapset;
generate_transaction(
t,
coll,
- !get_osdmap()->test_flag(CEPH_OSDMAP_REQUIRE_KRAKEN),
+ (get_osdmap()->require_osd_release < CEPH_RELEASE_KRAKEN),
log_entries,
&op_t,
&added,
void PastIntervals::update_type_from_map(bool ec_pool, const OSDMap &osdmap)
{
- update_type(ec_pool, osdmap.test_flag(CEPH_OSDMAP_REQUIRE_LUMINOUS));
+ update_type(ec_pool, osdmap.require_osd_release >= CEPH_RELEASE_LUMINOUS);
}
bool PastIntervals::is_new_interval(