From: Oguzhan Ozmen <74114625+BBoozmen@users.noreply.github.com> Date: Wed, 11 Jun 2025 13:51:55 +0000 (-0400) Subject: rgw_rest_s3.cc: update how we set bucket quota cfg for max size (bytes) and max objects X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=73bac06cb139e7da0af67f9c43d2f831bb59d641;p=ceph.git rgw_rest_s3.cc: update how we set bucket quota cfg for max size (bytes) and max objects Signed-off-by: Oguzhan Ozmen <74114625+BBoozmen@users.noreply.github.com> --- diff --git a/src/rgw/rgw_rest_s3.cc b/src/rgw/rgw_rest_s3.cc index c27f8fe9198..8405b3d5d24 100644 --- a/src/rgw/rgw_rest_s3.cc +++ b/src/rgw/rgw_rest_s3.cc @@ -1777,8 +1777,8 @@ void RGWGetUsage_ObjStore_S3::send_response() encode_json("QuotaMaxBytes", user_info.quota.user_quota.max_size, formatter); encode_json("QuotaMaxBuckets", user_info.max_buckets, formatter); encode_json("QuotaMaxObjCount", user_info.quota.user_quota.max_objects, formatter); - encode_json("QuotaMaxBytesPerBucket", user_info.quota.bucket_quota.max_objects, formatter); - encode_json("QuotaMaxObjCountPerBucket", user_info.quota.bucket_quota.max_size, formatter); + encode_json("QuotaMaxBytesPerBucket", user_info.quota.bucket_quota.max_size, formatter); + encode_json("QuotaMaxObjCountPerBucket", user_info.quota.bucket_quota.max_objects, formatter); // send info about user's capacity utilization encode_json("TotalBytes", stats.size, formatter); encode_json("TotalBytesRounded", stats.size_rounded, formatter);