dout(1) << __func__ << " setting backfillfull_ratio = "
<< pending_inc.new_backfillfull_ratio << dendl;
}
- if (osdmap.require_osd_release < CEPH_RELEASE_LUMINOUS) {
+ if (osdmap.get_epoch() > 0 &&
+ osdmap.require_osd_release < CEPH_RELEASE_LUMINOUS) {
// transition full ratios from PGMap to OSDMap (on upgrade)
float full_ratio = mon->pgservice->get_full_ratio();
float nearfull_ratio = mon->pgservice->get_nearfull_ratio();
if (pending_creatings.last_scan_epoch > inc.epoch) {
return pending_creatings;
}
- if (!osdmap.test_flag(CEPH_OSDMAP_REQUIRE_LUMINOUS)) {
+ if (osdmap.get_epoch() &&
+ !osdmap.test_flag(CEPH_OSDMAP_REQUIRE_LUMINOUS)) {
const unsigned total = pending_creatings.pgs.size();
mon->pgservice->maybe_add_creating_pgs(creating_pgs.last_scan_epoch,
&pending_creatings);
if (mon->monmap->get_required_features().contains_all(
ceph::features::mon::FEATURE_LUMINOUS)) {
auto pending_creatings = update_pending_pgs(pending_inc);
- if (osdmap.require_osd_release < CEPH_RELEASE_LUMINOUS) {
+ if (osdmap.get_epoch() &&
+ 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->pgservice->get_pg_stat());