]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
RadosGW API: incorrect bucket quota in response to HEAD /{bucket}/?usage 53439/head
authorshreyanshjain7174 <ssanchet@redhat.com>
Mon, 11 Sep 2023 10:40:33 +0000 (06:40 -0400)
committerKonstantin Shalygin <k0ste@k0ste.ru>
Sat, 14 Oct 2023 07:59:18 +0000 (14:59 +0700)
commit3bfff056c9d6b69490467a4680ef89416791aed7
tree6e42706b68803fcbcf0a420bc40e21599925f144
parent129959fe9d0ef9f0a81dc3637356e2bd1f39bfe8
RadosGW API: incorrect bucket quota in response to HEAD /{bucket}/?usage

When we try to get the bucket usage via various methods, through curl or while accessing rgw api endpoint at HEAD /{bucket}/?usage doesn't return the updated information. The endpoint was always returning the user quota and not the actual bucket quota which we see after querying the endpoint.

Fixes: https://tracker.ceph.com/issues/62737
Signed-off-by: shreyanshjain7174 <ssanchet@redhat.com>
(cherry picked from commit 78cd82b6e9f36a91f47d44ad2cfae89add335d4c)

Conflicts:
  - path: src/rgw/rgw_rest_s3.cc
    comment: resolve minor conflict
src/rgw/rgw_rest_s3.cc