Skip to content

Commit 7d07a72

Browse files
authored
Merge pull request ceph#63879 from ceph/BBoozmen-patch-1
rgw_rest_s3.cc: update how we report bucket quota cfg info for max size (bytes) and max objects
2 parents a77e266 + 73bac06 commit 7d07a72

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/rgw/rgw_rest_s3.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1781,8 +1781,8 @@ void RGWGetUsage_ObjStore_S3::send_response()
17811781
encode_json("QuotaMaxBytes", user_info.quota.user_quota.max_size, formatter);
17821782
encode_json("QuotaMaxBuckets", user_info.max_buckets, formatter);
17831783
encode_json("QuotaMaxObjCount", user_info.quota.user_quota.max_objects, formatter);
1784-
encode_json("QuotaMaxBytesPerBucket", user_info.quota.bucket_quota.max_objects, formatter);
1785-
encode_json("QuotaMaxObjCountPerBucket", user_info.quota.bucket_quota.max_size, formatter);
1784+
encode_json("QuotaMaxBytesPerBucket", user_info.quota.bucket_quota.max_size, formatter);
1785+
encode_json("QuotaMaxObjCountPerBucket", user_info.quota.bucket_quota.max_objects, formatter);
17861786
// send info about user's capacity utilization
17871787
encode_json("TotalBytes", stats.size, formatter);
17881788
encode_json("TotalBytesRounded", stats.size_rounded, formatter);

0 commit comments

Comments
 (0)