diff options
author | Yehuda Sadeh <yehuda@inktank.com> | 2013-07-22 14:26:54 -0700 |
---|---|---|
committer | Yehuda Sadeh <yehuda@inktank.com> | 2013-07-22 14:44:39 -0700 |
commit | 9f05db6b558e441dc816a490b5a7ed3a2071ed03 (patch) | |
tree | 008df8fcd1c5827aca7e384de92f60e2407e6264 | |
parent | c5025d4ad41a5f1e826094a805e5a46d91df4162 (diff) | |
download | ceph-9f05db6b558e441dc816a490b5a7ed3a2071ed03.tar.gz |
rgw: add some comments
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
-rw-r--r-- | src/rgw/rgw_rest_s3.cc | 3 | ||||
-rw-r--r-- | src/rgw/rgw_rest_swift.cc | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/src/rgw/rgw_rest_s3.cc b/src/rgw/rgw_rest_s3.cc index 35ee64d7eb9..199ccc485eb 100644 --- a/src/rgw/rgw_rest_s3.cc +++ b/src/rgw/rgw_rest_s3.cc @@ -1312,6 +1312,9 @@ void RGWCopyObj_ObjStore_S3::send_partial_response(off_t ofs) } sent_header = true; } else { + /* Send progress field. Note that this diverge from the original S3 + * spec. We do this in order to keep connection alive. + */ s->formatter->dump_int("Progress", (uint64_t)ofs); } rgw_flush_formatter(s, s->formatter); diff --git a/src/rgw/rgw_rest_swift.cc b/src/rgw/rgw_rest_swift.cc index f9d8c2eb3a9..80438a6556d 100644 --- a/src/rgw/rgw_rest_swift.cc +++ b/src/rgw/rgw_rest_swift.cc @@ -484,6 +484,9 @@ void RGWCopyObj_ObjStore_SWIFT::send_partial_response(off_t ofs) dump_errno(s); end_header(s); + /* Send progress information. Note that this diverge from the original swift + * spec. We do this in order to keep connection alive. + */ if (ret == 0) { s->formatter->open_array_section("progress"); } |