]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: rgw_bucket: set BucketInfo as const in rgw_remove_object
authorAbhishek Lekshmanan <abhishek@suse.com>
Mon, 29 Apr 2019 15:29:59 +0000 (17:29 +0200)
committerAbhishek Lekshmanan <abhishek@suse.com>
Mon, 6 May 2019 09:51:57 +0000 (11:51 +0200)
Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
src/rgw/rgw_bucket.cc
src/rgw/rgw_bucket.h

index 1c786a32a6c2901570973bd3ff734a97aaa641c6..a8f491943237d405a6316717b6fbf9f41438fda3 100644 (file)
@@ -505,7 +505,7 @@ static bool bucket_object_check_filter(const string& oid)
   return rgw_obj_key::oid_to_key_in_ns(oid, &key, ns);
 }
 
-int rgw_remove_object(RGWRados *store, RGWBucketInfo& bucket_info, rgw_bucket& bucket, rgw_obj_key& key)
+int rgw_remove_object(RGWRados *store, const RGWBucketInfo& bucket_info, const rgw_bucket& bucket, rgw_obj_key& key)
 {
   RGWObjectCtx rctx(store);
 
index c0a94230b1ae3559331e82455846ed22fcf3a101..2c483c0d3aba6bedacd4004e947310033465942d 100644 (file)
@@ -208,7 +208,7 @@ extern int rgw_link_bucket(RGWRados* store,
 extern int rgw_unlink_bucket(RGWRados *store, const rgw_user& user_id,
                              const string& tenant_name, const string& bucket_name, bool update_entrypoint = true);
 
-extern int rgw_remove_object(RGWRados *store, RGWBucketInfo& bucket_info, rgw_bucket& bucket, rgw_obj_key& key);
+extern int rgw_remove_object(RGWRados *store, const RGWBucketInfo& bucket_info, const rgw_bucket& bucket, rgw_obj_key& key);
 extern int rgw_remove_bucket(RGWRados *store, rgw_bucket& bucket, bool delete_children);
 extern int rgw_remove_bucket_bypass_gc(RGWRados *store, rgw_bucket& bucket, int concurrent_max);