summaryrefslogtreecommitdiffstats
path: root/src/rgw/driver/rados/rgw_rados.h
diff options
context:
space:
mode:
authorCasey Bodley <cbodley@redhat.com>2023-03-18 16:48:38 +0100
committerCasey Bodley <cbodley@redhat.com>2023-11-07 18:18:17 +0100
commite2eb66a36175dbd7ee0cdc706b1965c978807416 (patch)
tree86a683ecedce546e3801229bd84b6c1d68d6d01c /src/rgw/driver/rados/rgw_rados.h
parentrgw: add free function rgw::get_zonegroup_endpoint() (diff)
downloadceph-e2eb66a36175dbd7ee0cdc706b1965c978807416.tar.xz
ceph-e2eb66a36175dbd7ee0cdc706b1965c978807416.zip
rgw/sal: move User::create_bucket() to Bucket::create()
the CreateBucket operation always has to deal with existing buckets, so we have to load the Bucket handle first anyway also moves the related placement and forward_request_to_master() logic out of sal entirely Signed-off-by: Casey Bodley <cbodley@redhat.com>
Diffstat (limited to 'src/rgw/driver/rados/rgw_rados.h')
-rw-r--r--src/rgw/driver/rados/rgw_rados.h29
1 files changed, 14 insertions, 15 deletions
diff --git a/src/rgw/driver/rados/rgw_rados.h b/src/rgw/driver/rados/rgw_rados.h
index 18e818c4e89..77a08c068a6 100644
--- a/src/rgw/driver/rados/rgw_rados.h
+++ b/src/rgw/driver/rados/rgw_rados.h
@@ -628,21 +628,20 @@ public:
bool get_obj_data_pool(const rgw_placement_rule& placement_rule, const rgw_obj& obj, rgw_pool *pool);
bool obj_to_raw(const rgw_placement_rule& placement_rule, const rgw_obj& obj, rgw_raw_obj *raw_obj);
- int create_bucket(const RGWUserInfo& owner, rgw_bucket& bucket,
- const std::string& zonegroup_id,
- const rgw_placement_rule& placement_rule,
- const std::string& swift_ver_location,
- bool obj_lock_enabled,
- const RGWQuotaInfo * pquota_info,
- std::map<std::string,bufferlist>& attrs,
- RGWBucketInfo& bucket_info,
- obj_version *pobjv,
- obj_version *pep_objv,
- ceph::real_time creation_time,
- const rgw_bucket *master_bucket,
- optional_yield y,
- const DoutPrefixProvider *dpp,
- bool exclusive = true);
+ int create_bucket(const DoutPrefixProvider* dpp,
+ optional_yield y,
+ const rgw_bucket& bucket,
+ const rgw_user& owner,
+ const std::string& zonegroup_id,
+ const rgw_placement_rule& placement_rule,
+ const RGWZonePlacementInfo* zone_placement,
+ const std::map<std::string, bufferlist>& attrs,
+ bool obj_lock_enabled,
+ const std::optional<std::string>& swift_ver_location,
+ const std::optional<RGWQuotaInfo>& quota,
+ std::optional<ceph::real_time> creation_time,
+ obj_version* pep_objv,
+ RGWBucketInfo& info);
RGWCoroutinesManagerRegistry *get_cr_registry() { return cr_registry; }