<< dendl;
if (p.has_flag(pg_pool_t::FLAG_CREATING)) {
dout(10) << "pool " << i.first
- << " target " << p.get_pg_num_target()
+ << " pg_num_target " << p.get_pg_num_target()
<< " pg_num " << p.get_pg_num()
<< " - still creating initial pgs"
<< dendl;
} else if (p.get_pg_num() != p.get_pg_num_pending() &&
p.get_pg_num_target() < p.get_pg_num()) {
dout(10) << "pool " << i.first
- << " target " << p.get_pg_num_target()
+ << " pg_num_target " << p.get_pg_num_target()
<< " pg_num " << p.get_pg_num()
<< " - decrease and pg_num_pending != pg_num, waiting"
<< dendl;
bool ok = true;
auto q = pg_map.pg_stat.find(merge_source);
if (q == pg_map.pg_stat.end()) {
+ } else if (q == pg_map.pg_stat.end()) {
dout(10) << "pool " << i.first
- << " target " << p.get_pg_num_target()
+ << " pg_num_target " << p.get_pg_num_target()
<< " pg_num " << p.get_pg_num()
<< " - no state for " << merge_source
<< " (merge source)"
} else if (!(q->second.state & (PG_STATE_ACTIVE |
PG_STATE_CLEAN))) {
dout(10) << "pool " << i.first
- << " target " << p.get_pg_num_target()
+ << " pg_num_target " << p.get_pg_num_target()
<< " pg_num " << p.get_pg_num()
<< " - merge source " << merge_source
<< " not clean (" << pg_state_string(q->second.state)
q = pg_map.pg_stat.find(merge_target);
if (q == pg_map.pg_stat.end()) {
dout(10) << "pool " << i.first
- << " target " << p.get_pg_num_target()
+ << " pg_num_target " << p.get_pg_num_target()
<< " pg_num " << p.get_pg_num()
<< " - no state for " << merge_target
<< " (merge target)"
} else if (!(q->second.state & (PG_STATE_ACTIVE |
PG_STATE_CLEAN))) {
dout(10) << "pool " << i.first
- << " target " << p.get_pg_num_target()
+ << " pg_num_target " << p.get_pg_num_target()
<< " pg_num " << p.get_pg_num()
<< " - merge target " << merge_target
<< " not clean (" << pg_state_string(q->second.state)
if (ok) {
unsigned target = p.get_pg_num() - 1;
dout(10) << "pool " << i.first
- << " target " << p.get_pg_num_target()
+ << " pg_num_target " << p.get_pg_num_target()
<< " pg_num " << p.get_pg_num()
<< " -> " << target
<< " (merging " << merge_source
}
if (!active) {
dout(10) << "pool " << i.first
- << " target " << p.get_pg_num_target()
+ << " pg_num_target " << p.get_pg_num_target()
<< " pg_num " << p.get_pg_num()
<< " - not all pgs active"
<< dendl;
unsigned target = p.get_pg_num() + add;
left -= add;
dout(10) << "pool " << i.first
- << " target " << p.get_pg_num_target()
+ << " pg_num_target " << p.get_pg_num_target()
<< " pg_num " << p.get_pg_num()
<< " -> " << target << dendl;
pg_num_to_set[osdmap.get_pool_name(i.first)] = target;