]> 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)
committerNathan Cutler <ncutler@suse.com>
Thu, 13 Jun 2019 21:10:32 +0000 (23:10 +0200)
Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
(cherry picked from commit 1d1ea1fa391a18aa2251576b58676a7a05b7ebaa)

src/rgw/rgw_bucket.cc
src/rgw/rgw_bucket.h

index 308a93ce04c0ff3ee3468de400a8b7cfdd24c512..889300ea70931e7eef83bd6dbc9b9586d43d8593 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);