Skip to content

Commit 73bac06

Browse files
authored
rgw_rest_s3.cc: update how we set bucket quota cfg for max size (bytes) and max objects
Signed-off-by: Oguzhan Ozmen <[email protected]>
1 parent 3e2687d commit 73bac06

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
@@ -1777,8 +1777,8 @@ void RGWGetUsage_ObjStore_S3::send_response()
17771777
encode_json("QuotaMaxBytes", user_info.quota.user_quota.max_size, formatter);
17781778
encode_json("QuotaMaxBuckets", user_info.max_buckets, formatter);
17791779
encode_json("QuotaMaxObjCount", user_info.quota.user_quota.max_objects, formatter);
1780-
encode_json("QuotaMaxBytesPerBucket", user_info.quota.bucket_quota.max_objects, formatter);
1781-
encode_json("QuotaMaxObjCountPerBucket", user_info.quota.bucket_quota.max_size, formatter);
1780+
encode_json("QuotaMaxBytesPerBucket", user_info.quota.bucket_quota.max_size, formatter);
1781+
encode_json("QuotaMaxObjCountPerBucket", user_info.quota.bucket_quota.max_objects, formatter);
17821782
// send info about user's capacity utilization
17831783
encode_json("TotalBytes", stats.size, formatter);
17841784
encode_json("TotalBytesRounded", stats.size_rounded, formatter);

0 commit comments

Comments
 (0)