From: Yehuda Sadeh Date: Fri, 30 Sep 2016 00:44:08 +0000 (-0700) Subject: rgw: minor optimization X-Git-Tag: v10.2.6~141^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F13068%2Fhead;p=ceph.git rgw: minor optimization Signed-off-by: Yehuda Sadeh (cherry picked from commit 4919dc9987c6376d3d4e143702c26417449524c5) --- diff --git a/src/rgw/rgw_rest_s3.cc b/src/rgw/rgw_rest_s3.cc index 8cca01b4292..699be5969b5 100644 --- a/src/rgw/rgw_rest_s3.cc +++ b/src/rgw/rgw_rest_s3.cc @@ -1311,7 +1311,7 @@ void RGWPutObj_ObjStore_S3::send_response() s->cct->_conf->rgw_s3_success_create_obj_status); set_req_state_err(s, op_ret); } - if (!s->info.env->get("HTTP_X_AMZ_COPY_SOURCE")) { + if (!copy_source) { dump_etag(s, etag.c_str()); dump_content_length(s, 0); } else {