]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: minor optimization 13068/head
authorYehuda Sadeh <yehuda@redhat.com>
Fri, 30 Sep 2016 00:44:08 +0000 (17:44 -0700)
committerMatt Benjamin <mbenjamin@redhat.com>
Thu, 26 Jan 2017 22:08:54 +0000 (17:08 -0500)
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
(cherry picked from commit 4919dc9987c6376d3d4e143702c26417449524c5)

src/rgw/rgw_rest_s3.cc

index 8cca01b4292133e5142310fbfefd82e78b04cd22..699be5969b5c9acebf0ef77fd1efe2f99a5f84af 100644 (file)
@@ -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 {