row[4 + size + i] = up[i];
}
}
-
- uint64_t get_num_acting_pgs() const {
- uint64_t num_acting_pgs = 0;
- const size_t row_size = this->row_size();
- for (size_t ps = 0; ps < pg_num; ++ps) {
- const int32_t *row = &table[row_size * ps];
- num_acting_pgs += row[2];
- }
- return num_acting_pgs;
- }
};
mempool::osdmap_mapping::map<int64_t,PoolMapping> pools;
return acting_rmap[osd];
}
- uint64_t get_num_acting_pgs(int64_t pool) const {
- auto p = pools.find(pool);
- ceph_assert(p != pools.end());
- return p->second.get_num_acting_pgs();
- }
-
void update(const OSDMap& map, pg_t pgid);
std::unique_ptr<MappingJob> start_update(