mirror of
https://github.com/ceph/ceph
synced 2024-12-30 07:23:11 +00:00
rgw: remove unused param in get_bucket_instance_policy_from_attr
Signed-off-by: Bingyin Zhang <zhangbingyin@cloudin.cn>
This commit is contained in:
parent
23f69ac155
commit
3d088e04f0
@ -175,8 +175,7 @@ static int get_bucket_instance_policy_from_attr(CephContext *cct,
|
||||
RGWRados *store,
|
||||
RGWBucketInfo& bucket_info,
|
||||
map<string, bufferlist>& bucket_attrs,
|
||||
RGWAccessControlPolicy *policy,
|
||||
rgw_raw_obj& obj)
|
||||
RGWAccessControlPolicy *policy)
|
||||
{
|
||||
map<string, bufferlist>::iterator aiter = bucket_attrs.find(RGW_ATTR_ACL);
|
||||
|
||||
@ -243,10 +242,7 @@ static int get_bucket_policy_from_attr(CephContext *cct,
|
||||
map<string, bufferlist>& bucket_attrs,
|
||||
RGWAccessControlPolicy *policy)
|
||||
{
|
||||
rgw_raw_obj instance_obj;
|
||||
store->get_bucket_instance_obj(bucket_info.bucket, instance_obj);
|
||||
return get_bucket_instance_policy_from_attr(cct, store, bucket_info, bucket_attrs,
|
||||
policy, instance_obj);
|
||||
return get_bucket_instance_policy_from_attr(cct, store, bucket_info, bucket_attrs, policy);
|
||||
}
|
||||
|
||||
static optional<Policy> get_iam_policy_from_attr(CephContext* cct,
|
||||
|
Loading…
Reference in New Issue
Block a user