]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: turn swift COPY into PUT
authorYehuda Sadeh <yehuda@inktank.com>
Mon, 21 Oct 2013 21:17:12 +0000 (14:17 -0700)
committerSage Weil <sage@inktank.com>
Fri, 13 Dec 2013 22:42:32 +0000 (14:42 -0800)
commit0eae05f31e4a03e923d51521ecd0078657eda9ba
tree9f5402f0c45bb2f2a1a0d9eea6a2037675deb315
parent455f28a78ee22b6a535831ff70a330fa1379567c
rgw: turn swift COPY into PUT

Fixes: #6606
The swift COPY operation is unique in a sense that it's a write
operation that has its destination not set by the URI target, but by a
different HTTP header. This is problematic as there are some hidden
assumptions in the code that the specified bucket/object in the URI is
the operation target. E.g., certain initialization functions, quota,
etc. Instead of creating a specialized code everywhere for this case
just turn it into a regular copy operation, that is, a PUT with
a specified copy source.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
(cherry picked from commit cbf8f9a51737e7d89fb0ec0832b50fd47c35b08d)
src/rgw/rgw_common.h
src/rgw/rgw_op.cc
src/rgw/rgw_op.h
src/rgw/rgw_rest.cc
src/rgw/rgw_rest_swift.cc