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 {
}
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();
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<string, bufferlist>& attrs,
- RGWObjCategory category,
uint64_t olh_epoch,
real_time delete_at,
string *version_id,
- string *ptag,
ceph::buffer::list *petag)
{
string tag;
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<string, bufferlist>& 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);