summaryrefslogtreecommitdiffstats
path: root/src/rgw/rgw_sal.cc
diff options
context:
space:
mode:
authorDaniel Gryniewicz <dang@redhat.com>2020-07-30 14:50:32 +0200
committerDaniel Gryniewicz <dang@redhat.com>2020-08-17 18:30:58 +0200
commit7c1fdddf470aba9b8e4fe8b7e7a9bbcfa45e4b21 (patch)
treeaca0052e437c22297646fad7e826459735c025ba /src/rgw/rgw_sal.cc
parentRemoving getRados() - RGWGetObjLayout (diff)
downloadceph-7c1fdddf470aba9b8e4fe8b7e7a9bbcfa45e4b21.tar.xz
ceph-7c1fdddf470aba9b8e4fe8b7e7a9bbcfa45e4b21.zip
Zipper - Fix retry_raced_bucket_write
Was using Rados directly; use Zipper instead. Signed-off-by: Daniel Gryniewicz <dang@redhat.com>
Diffstat (limited to 'src/rgw/rgw_sal.cc')
-rw-r--r--src/rgw/rgw_sal.cc11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/rgw/rgw_sal.cc b/src/rgw/rgw_sal.cc
index 39e573cafee..b3d4133fead 100644
--- a/src/rgw/rgw_sal.cc
+++ b/src/rgw/rgw_sal.cc
@@ -298,6 +298,17 @@ int RGWRadosBucket::check_quota(RGWQuotaInfo& user_quota, RGWQuotaInfo& bucket_q
user_quota, bucket_quota, obj_size, check_size_only);
}
+int RGWRadosBucket::set_instance_attrs(RGWAttrs& attrs, optional_yield y)
+{
+ return store->ctl()->bucket->set_bucket_instance_attrs(get_info(),
+ attrs.attrs, &get_info().objv_tracker, y);
+}
+
+int RGWRadosBucket::try_refresh_info(ceph::real_time *pmtime)
+{
+ return store->getRados()->try_refresh_bucket_info(info, pmtime, &attrs.attrs);
+}
+
int RGWRadosBucket::set_acl(RGWAccessControlPolicy &acl, optional_yield y)
{
bufferlist aclbl;