From: Yehuda Sadeh Date: Mon, 22 Jul 2013 21:26:54 +0000 (-0700) Subject: rgw: add some comments X-Git-Tag: v0.67-rc2~19^2~10^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=9f05db6b558e441dc816a490b5a7ed3a2071ed03;p=ceph.git rgw: add some comments Signed-off-by: Yehuda Sadeh --- diff --git a/src/rgw/rgw_rest_s3.cc b/src/rgw/rgw_rest_s3.cc index 35ee64d7eb93..199ccc485eb4 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 f9d8c2eb3a97..80438a6556de 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"); }