From: Enming Zhang Date: Tue, 14 Nov 2017 10:10:11 +0000 (+0800) Subject: rgw: cleanup unused parameters in RGWRados::copy_obj_data X-Git-Tag: v13.0.1~182^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=3cd8511732dca7aafb446a55438a5ff5c84bef01;p=ceph.git rgw: cleanup unused parameters in RGWRados::copy_obj_data src_obj, max_chunk_size, category and ptag are out of use in RGWRados::copy_obj_data. Signed-off-by: Enming Zhang --- diff --git a/src/rgw/rgw_rados.cc b/src/rgw/rgw_rados.cc index 161608a89d987..07e97fdb050f0 100644 --- a/src/rgw/rgw_rados.cc +++ b/src/rgw/rgw_rados.cc @@ -7377,16 +7377,8 @@ int RGWRados::rewrite_obj(RGWBucketInfo& dest_bucket_info, rgw_obj& obj) attrset.erase(RGW_ATTR_ID_TAG); attrset.erase(RGW_ATTR_TAIL_TAG); - uint64_t max_chunk_size; - - ret = get_max_chunk_size(dest_bucket_info.placement_rule, obj, &max_chunk_size); - if (ret < 0) { - ldout(cct, 0) << "ERROR: failed to get max_chunk_size() for bucket " << obj.bucket << dendl; - return ret; - } - - return copy_obj_data(rctx, dest_bucket_info, read_op, obj_size - 1, obj, obj, max_chunk_size, NULL, mtime, attrset, - RGW_OBJ_CATEGORY_MAIN, 0, real_time(), NULL, NULL, NULL); + return copy_obj_data(rctx, dest_bucket_info, read_op, obj_size - 1, obj, NULL, mtime, attrset, + 0, real_time(), NULL, NULL); } struct obj_time_weight { @@ -8035,9 +8027,9 @@ int RGWRados::copy_obj(RGWObjectCtx& obj_ctx, } if (copy_data) { /* refcounting tail wouldn't work here, just copy the data */ - return copy_obj_data(obj_ctx, dest_bucket_info, read_op, obj_size - 1, dest_obj, src_obj, - max_chunk_size, mtime, real_time(), attrs, category, olh_epoch, delete_at, - version_id, ptag, petag); + return copy_obj_data(obj_ctx, dest_bucket_info, read_op, obj_size - 1, dest_obj, + mtime, real_time(), attrs, olh_epoch, delete_at, + version_id, petag); } RGWObjManifest::obj_iterator miter = astate->manifest.obj_begin(); @@ -8161,16 +8153,12 @@ int RGWRados::copy_obj_data(RGWObjectCtx& obj_ctx, RGWBucketInfo& dest_bucket_info, RGWRados::Object::Read& read_op, off_t end, rgw_obj& dest_obj, - rgw_obj& src_obj, - uint64_t max_chunk_size, real_time *mtime, real_time set_mtime, map& attrs, - RGWObjCategory category, uint64_t olh_epoch, real_time delete_at, string *version_id, - string *ptag, ceph::buffer::list *petag) { string tag; diff --git a/src/rgw/rgw_rados.h b/src/rgw/rgw_rados.h index d18398eba4d0b..5942ec013dd19 100644 --- a/src/rgw/rgw_rados.h +++ b/src/rgw/rgw_rados.h @@ -3181,16 +3181,12 @@ public: RGWBucketInfo& dest_bucket_info, RGWRados::Object::Read& read_op, off_t end, rgw_obj& dest_obj, - rgw_obj& src_obj, - uint64_t max_chunk_size, ceph::real_time *mtime, ceph::real_time set_mtime, map& attrs, - RGWObjCategory category, uint64_t olh_epoch, ceph::real_time delete_at, string *version_id, - string *ptag, ceph::buffer::list *petag); int check_bucket_empty(RGWBucketInfo& bucket_info);