summaryrefslogtreecommitdiffstats
path: root/src/rgw/rgw_rest_swift.cc
diff options
context:
space:
mode:
authorYehuda Sadeh <yehuda@hq.newdream.net>2011-10-27 02:20:51 +0200
committerYehuda Sadeh <yehuda@hq.newdream.net>2011-10-27 02:20:51 +0200
commit0c78f0dc80b4e38a4778f3ef44c818035263e299 (patch)
tree0d94a5e7384b67106afae82f2b4360faae47bc3f /src/rgw/rgw_rest_swift.cc
parentrgw: rgw-admin --skip-zero-entries (diff)
downloadceph-0c78f0dc80b4e38a4778f3ef44c818035263e299.tar.xz
ceph-0c78f0dc80b4e38a4778f3ef44c818035263e299.zip
rgw: handle swift PUT with incorrect etag
Diffstat (limited to 'src/rgw/rgw_rest_swift.cc')
-rw-r--r--src/rgw/rgw_rest_swift.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/rgw/rgw_rest_swift.cc b/src/rgw/rgw_rest_swift.cc
index 5706ea2edeb..e5bdefd9f70 100644
--- a/src/rgw/rgw_rest_swift.cc
+++ b/src/rgw/rgw_rest_swift.cc
@@ -236,6 +236,12 @@ void RGWDeleteBucket_REST_SWIFT::send_response()
flush_formatter_to_req_state(s, s->formatter);
}
+int RGWPutObj_REST_SWIFT::get_params()
+{
+ supplied_etag = s->env->get("HTTP_ETAG");
+ return 0;
+}
+
void RGWPutObj_REST_SWIFT::send_response()
{
if (!ret)