}
}
+ if (version_id && !version_id->empty()) {
+ dest_obj.key.set_instance(*version_id);
+ } else if (dest_bucket_info.versioning_enabled()) {
+ gen_rand_obj_instance_name(&dest_obj);
+ }
+
if (copy_data) { /* refcounting tail wouldn't work here, just copy the data */
+ attrs.erase(RGW_ATTR_TAIL_TAG);
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);
+ mtime, real_time(), attrs, olh_epoch, delete_at, petag);
}
RGWObjManifest::obj_iterator miter = astate->manifest.obj_begin();