]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw/rados: check_quota() uses real bucket owner 51330/head
authorMykola Golub <mgolub@suse.com>
Thu, 6 Apr 2023 15:38:02 +0000 (11:38 -0400)
committerMykola Golub <mgolub@suse.com>
Wed, 3 May 2023 07:53:17 +0000 (10:53 +0300)
Fixes: https://tracker.ceph.com/issues/58725
Signed-off-by: Mykola Golub <mgolub@suse.com>
Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit 13299bccc6ae42579a9def4776270abd334e9efe)

Conflicts:
src/rgw/driver/rados/rgw_sal_rados.cc
    (changed file location and check_quota signature)

src/rgw/rgw_sal_rados.cc

index 9a6c473b93ab894ad58132dc8d4f0c96ee5287f6..b300e080826dd21baf3e703633f387a6c453ad17 100644 (file)
@@ -317,7 +317,7 @@ int RGWRadosBucket::check_empty(const DoutPrefixProvider *dpp, optional_yield y)
 int RGWRadosBucket::check_quota(RGWQuotaInfo& user_quota, RGWQuotaInfo& bucket_quota, uint64_t obj_size,
                                optional_yield y, bool check_size_only)
 {
-    return store->getRados()->check_quota(owner->get_user(), get_key(),
+    return store->getRados()->check_quota(info.owner, get_key(),
                                          user_quota, bucket_quota, obj_size, y, check_size_only);
 }