for (auto p = osdmap.pg_temp->begin();
p != osdmap.pg_temp->end();
++p) {
- if (p->first.pool() == (uint64_t)pool) {
+ if (p->first.pool() == pool) {
dout(10) << __func__ << " " << pool << " removing obsolete pg_temp "
<< p->first << dendl;
pending_inc.new_pg_temp[p->first].clear();
for (auto p = osdmap.primary_temp->begin();
p != osdmap.primary_temp->end();
++p) {
- if (p->first.pool() == (uint64_t)pool) {
+ if (p->first.pool() == pool) {
dout(10) << __func__ << " " << pool
<< " removing obsolete primary_temp" << p->first << dendl;
pending_inc.new_primary_temp[p->first] = -1;
}
// remove any pg_upmap mappings for this pool
for (auto& p : osdmap.pg_upmap) {
- if (p.first.pool() == (uint64_t)pool) {
+ if (p.first.pool() == pool) {
dout(10) << __func__ << " " << pool
<< " removing obsolete pg_upmap "
<< p.first << dendl;
}
// remove any pg_upmap_items mappings for this pool
for (auto& p : osdmap.pg_upmap_items) {
- if (p.first.pool() == (uint64_t)pool) {
+ if (p.first.pool() == pool) {
dout(10) << __func__ << " " << pool
<< " removing obsolete pg_upmap_items " << p.first
<< dendl;
for (auto i = pg_stat.begin();
i != pg_stat.end();
++i) {
- if ((poolid >= 0) && (uint64_t(poolid) != i->first.pool()))
+ if ((poolid >= 0) && (poolid != i->first.pool()))
continue;
if ((osdid >= 0) && !(i->second.is_acting_osd(osdid,primary)))
continue;
ldout(cct, 10) << __func__ << " pool " << p.first << " gone, removing pgs"
<< dendl;
for (auto& q : pgmap.pg_stat) {
- if (q.first.pool() == (uint64_t)p.first) {
+ if (q.first.pool() == p.first) {
pending_inc->pg_remove.insert(q.first);
}
}
auto q = pending_inc->pg_stat_updates.begin();
while (q != pending_inc->pg_stat_updates.end()) {
- if (q->first.pool() == (uint64_t)p.first) {
+ if (q->first.pool() == p.first) {
q = pending_inc->pg_stat_updates.erase(q);
} else {
++q;