quota.max_size_soft_threshold = quota.max_size * store->ctx()->_conf->rgw_bucket_quota_soft_threshold;
}
- const auto cached_stats_num_kb_rounded = rgw_rounded_kb(cached_stats.size_rounded);
- if (cached_stats_num_kb_rounded >= (uint64_t)quota.max_size_soft_threshold) {
+ if (cached_stats.size_rounded >= (uint64_t)quota.max_size_soft_threshold) {
ldout(store->ctx(), 20) << "quota: can't use cached stats, exceeded soft threshold (size): "
- << cached_stats_num_kb_rounded << " >= " << quota.max_size_soft_threshold << dendl;
+ << cached_stats.size_rounded << " >= " << quota.max_size_soft_threshold << dendl;
return false;
}
}