.set_default(1000)
.set_description("Max number of buckets per user")
.set_long_description(
- "A user can create this many buckets. Zero means unlimited, negative number means "
- "user cannot create any buckets (although user will retain buckets already created."),
+ "A user can create at most this number of buckets. Zero means "
+ "no limit; a negative value means users cannot create any new "
+ "buckets, although users will retain buckets already created."),
Option("rgw_objexp_gc_interval", Option::TYPE_UINT, Option::LEVEL_ADVANCED)
.set_default(10_min)
user_info.user_id = new_acct_user;
user_info.display_name = info.acct_name;
- user_info.max_buckets = cct->_conf->rgw_user_max_buckets;
+ user_info.max_buckets =
+ cct->_conf.get_val<int64_t>("rgw_user_max_buckets");
rgw_apply_default_bucket_quota(user_info.bucket_quota, cct->_conf);
rgw_apply_default_user_quota(user_info.user_quota, cct->_conf);
{
CephContext *cct = store->ctx();
- int32_t default_max_buckets = cct->_conf->rgw_user_max_buckets;
+ const int32_t default_max_buckets =
+ cct->_conf.get_val<int64_t>("rgw_user_max_buckets");
RGWUserAdminOpState op_state;
bool exclusive;
int32_t max_buckets;
- int32_t default_max_buckets = s->cct->_conf->rgw_user_max_buckets;
+ const int32_t default_max_buckets =
+ s->cct->_conf.get_val<int64_t>("rgw_user_max_buckets");
RGWUserAdminOpState op_state;
if (op_state.max_buckets_specified) {
user_info.max_buckets = op_state.get_max_buckets();
} else {
- user_info.max_buckets = cct->_conf->rgw_user_max_buckets;
+ user_info.max_buckets =
+ cct->_conf.get_val<int64_t>("rgw_user_max_buckets");
}
user_info.suspended = op_state.get_suspension_status();