]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
rgw/sal: remove Bucket::get_acl_owner()
authorCasey Bodley <cbodley@redhat.com>
Sat, 4 Nov 2023 20:40:21 +0000 (16:40 -0400)
committerCasey Bodley <cbodley@redhat.com>
Wed, 8 Nov 2023 19:05:49 +0000 (14:05 -0500)
was only used under the line by rados and dbstores

Signed-off-by: Casey Bodley <cbodley@redhat.com>
src/rgw/driver/rados/rgw_sal_rados.cc
src/rgw/rgw_sal.h
src/rgw/rgw_sal_dbstore.cc
src/rgw/rgw_sal_filter.h
src/rgw/rgw_sal_store.h

index c555ead9745ec2c5b52d8088fbcc67f912339031..08722cc24b519ffe27e8c23488a7af10bb17eb5d 100644 (file)
@@ -2229,7 +2229,7 @@ int RadosMultipartUpload::abort(const DoutPrefixProvider *dpp, CephContext *cct,
   }
 
   std::unique_ptr<rgw::sal::Object::DeleteOp> del_op = meta_obj->get_delete_op();
-  del_op->params.bucket_owner = bucket->get_acl_owner();
+  del_op->params.bucket_owner = bucket->get_info().owner;
   del_op->params.versioning_status = 0;
   if (!remove_objs.empty()) {
     del_op->params.remove_objs = &remove_objs;
index b222fcd03cbc9ca7d192dd096151b84fe35ec888..2fb2ec98a06e2129a3091e5c486758c4981f6513 100644 (file)
@@ -699,8 +699,6 @@ class Bucket {
     virtual bool is_owner(User* user) = 0;
     /** Get the owner of this bucket */
     virtual User* get_owner(void) = 0;
-    /** Get the owner of this bucket in the form of an ACLOwner object */
-    virtual ACLOwner get_acl_owner(void) = 0;
     /** Check in the backing store if this bucket is empty */
     virtual int check_empty(const DoutPrefixProvider* dpp, optional_yield y) = 0;
     /** Chec k if the given size fits within the quota */
index 5140a3bfbe8e7511db257bce40a6e1f29dff078f..d406289f048888c954c345ddfab7ee91ee571048 100644 (file)
@@ -796,7 +796,7 @@ namespace rgw::sal {
     int ret;
 
     std::unique_ptr<rgw::sal::Object::DeleteOp> del_op = meta_obj->get_delete_op();
-    del_op->params.bucket_owner = bucket->get_acl_owner();
+    del_op->params.bucket_owner = bucket->get_info().owner;
     del_op->params.versioning_status = 0;
 
     // Since the data objects are associated with meta obj till
index 34739c3426a25ed16b86fb5d6b6cf2602efff7ba..943170dd0820b7bcf4d461ba8a9652bd5a677d5f 100644 (file)
@@ -413,7 +413,6 @@ public:
                       ceph::real_time mtime, optional_yield y) override;
   virtual bool is_owner(User* user) override;
   virtual User* get_owner(void) override { return user; }
-  virtual ACLOwner get_acl_owner(void) override { return next->get_acl_owner(); }
   virtual int check_empty(const DoutPrefixProvider* dpp, optional_yield y) override;
   virtual int check_quota(const DoutPrefixProvider *dpp, RGWQuota& quota,
                          uint64_t obj_size, optional_yield y,
index f5efdc3494fe8e678832b21490343ad7f5b71e00..943830c77fe4dcca0e7a011f81d3f558127309ec 100644 (file)
@@ -104,7 +104,6 @@ class StoreBucket : public Bucket {
     virtual User* get_owner(void) override { return owner; };
     /* Make sure to call get_bucket_info() if you need it first */
     virtual bool is_owner(User* user) override { return (info.owner.compare(user->get_id()) == 0); }
-    virtual ACLOwner get_acl_owner(void) override { return ACLOwner(info.owner); };
     virtual bool empty() const override { return info.bucket.name.empty(); }
     virtual const std::string& get_name() const override { return info.bucket.name; }
     virtual const std::string& get_tenant() const override { return info.bucket.tenant; }