From: Theofilos Mouratidis Date: Wed, 1 Jul 2026 11:34:11 +0000 (+0200) Subject: rgw: rgw_rest_account.cc: Fix quota variable types from int32_t to int64_t X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=f9941e765e8fe2ac69d7f828aaf3224fcc73bf7a;p=ceph.git rgw: rgw_rest_account.cc: Fix quota variable types from int32_t to int64_t The max_size and max_objects in the Admin-OPs REST interface were accidentally set to int32_t This allowed to set only up to 2GB of quota for accounts Signed-off-by: Theofilos Mouratidis --- diff --git a/src/rgw/rgw_rest_account.cc b/src/rgw/rgw_rest_account.cc index 1b2ac6176de..7eca38c5297 100644 --- a/src/rgw/rgw_rest_account.cc +++ b/src/rgw/rgw_rest_account.cc @@ -273,16 +273,16 @@ void RGWOp_Account_Quota_Set::execute(optional_yield y) return; } - int32_t quota_max_size = 0; + int64_t quota_max_size = 0; bool has_quota_max_size = false; - RESTArgs::get_int32(s, "max-size", 0, "a_max_size, &has_quota_max_size); + RESTArgs::get_int64(s, "max-size", 0, "a_max_size, &has_quota_max_size); if (has_quota_max_size) { op_state.quota_max_size = quota_max_size; } - int32_t quota_max_objects = 0; + int64_t quota_max_objects = 0; bool has_quota_max_objects = false; - RESTArgs::get_int32(s, "max-objects", 0, "a_max_objects, &has_quota_max_objects); + RESTArgs::get_int64(s, "max-objects", 0, "a_max_objects, &has_quota_max_objects); if (has_quota_max_objects) { op_state.quota_max_objects = quota_max_objects; }