]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw_rest_s3.cc: update how we set bucket quota cfg for max size (bytes) and max objects 63879/head
authorOguzhan Ozmen <74114625+BBoozmen@users.noreply.github.com>
Wed, 11 Jun 2025 13:51:55 +0000 (09:51 -0400)
committerGitHub <noreply@github.com>
Wed, 11 Jun 2025 13:51:55 +0000 (09:51 -0400)
Signed-off-by: Oguzhan Ozmen <74114625+BBoozmen@users.noreply.github.com>
src/rgw/rgw_rest_s3.cc

index c27f8fe91989df93522d8558d9d72d548fffe1ae..8405b3d5d249e7ee32814f3e595b6a6bcb4a86de 100644 (file)
@@ -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);