pool of objects beyond quota should be warn, when the pool bytes beyond set quotas
Signed-off-by: huanwen ren <ren.huanwen@zte.com.cn>
mon->clog->warn() << "pool '" << pool_name << "' is full"
<< " (reached quota's max_bytes: "
<< si_t(pool.quota_max_bytes) << ")";
- } else if (pool.quota_max_objects > 0 &&
+ }
+ if (pool.quota_max_objects > 0 &&
(uint64_t)sum.num_objects >= pool.quota_max_objects) {
mon->clog->warn() << "pool '" << pool_name << "' is full"
<< " (reached quota's max_objects: "
<< pool.quota_max_objects << ")";
- } else {
- assert(0 == "we shouldn't reach this");
}
update_pool_flags(it->first, pool.get_flags() | pg_pool_t::FLAG_FULL);
ret = true;