]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw:send x-amz-version-id header when upload files 27935/head
authorXinying Song <songxinying@cloudin.cn>
Wed, 15 Nov 2017 06:10:58 +0000 (14:10 +0800)
committerCasey Bodley <cbodley@redhat.com>
Thu, 2 May 2019 20:33:24 +0000 (16:33 -0400)
commit65fe73a5456d70caa2003e53062108d9f11a748d
tree54357e810bae2df000d6564b8b7dfa83292e5017
parent340d58ef6d164a2c10f4feb4763cfb9602d41133
rgw:send x-amz-version-id header when upload files

To be compatible with aws s3, an x-amz-version-id header should be returned.

For atomic upload, RGWPutObj::version_id will stores the version-id either
generated by rgw randomly or read from user. For multipart upload,
RGWCompleteMultipart::version_id will stores the version-id either
generated by rgw randomly or read from user.

Function send_respones() will send 'x-amz-version-id' header when version_id is not empty.

Signed-off-by: Xinying Song <songxinying@cloudin.cn>
(cherry picked from commit b4a937562a7ae909c2748980b5327189ccb8cdc0)
src/rgw/rgw_common.h
src/rgw/rgw_op.cc
src/rgw/rgw_op.h
src/rgw/rgw_rados.cc
src/rgw/rgw_rados.h
src/rgw/rgw_rest_s3.cc