}
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;
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 */
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
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,
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; }