(pool.quota_max_bytes > 0 && (uint64_t)sum.num_bytes >= pool.quota_max_bytes) ||
(pool.quota_max_objects > 0 && (uint64_t)sum.num_objects >= pool.quota_max_objects);
- if (pool.get_flags() & pg_pool_t::FLAG_FULL) {
+ if (pool.has_flag(pg_pool_t::FLAG_FULL)) {
if (pool_is_full)
continue;
const pg_pool_t &pool = it->second;
const string& pool_name = osdmap.get_pool_name(it->first);
- if (pool.get_flags() & pg_pool_t::FLAG_FULL) {
+ if (pool.has_flag(pg_pool_t::FLAG_FULL)) {
// uncomment these asserts if/when we update the FULL flag on pg_stat update
//assert((pool.quota_max_objects > 0) || (pool.quota_max_bytes > 0));
health_status_t status = HEALTH_OK;
if ((uint64_t)sum.num_objects >= pool.quota_max_objects) {
// uncomment these asserts if/when we update the FULL flag on pg_stat update
- //assert(pool.get_flags() & pg_pool_t::FLAG_FULL);
+ //assert(pool.has_flag(pg_pool_t::FLAG_FULL));
} else if (crit_threshold > 0 &&
sum.num_objects >= pool.quota_max_objects*crit_threshold) {
ss << "pool '" << pool_name
stringstream ss;
if ((uint64_t)sum.num_bytes >= pool.quota_max_bytes) {
// uncomment these asserts if/when we update the FULL flag on pg_stat update
- //assert(pool.get_flags() & pg_pool_t::FLAG_FULL);
+ //assert(pool.has_flag(pg_pool_t::FLAG_FULL));
} else if (crit_threshold > 0 &&
sum.num_bytes >= pool.quota_max_bytes*crit_threshold) {
ss << "pool '" << pool_name
mask |= CEPH_FEATURES_CRUSH;
for (map<int64_t,pg_pool_t>::const_iterator p = pools.begin(); p != pools.end(); ++p) {
- if (p->second.flags & pg_pool_t::FLAG_HASHPSPOOL) {
+ if (p->second.has_flag(pg_pool_t::FLAG_HASHPSPOOL)) {
features |= CEPH_FEATURE_OSDHASHPSPOOL;
}
if (p->second.is_erasure() &&