From 9f05db6b558e441dc816a490b5a7ed3a2071ed03 Mon Sep 17 00:00:00 2001 From: Yehuda Sadeh Date: Mon, 22 Jul 2013 14:26:54 -0700 Subject: [PATCH] rgw: add some comments Signed-off-by: Yehuda Sadeh --- src/rgw/rgw_rest_s3.cc | 3 +++ src/rgw/rgw_rest_swift.cc | 3 +++ 2 files changed, 6 insertions(+) diff --git a/src/rgw/rgw_rest_s3.cc b/src/rgw/rgw_rest_s3.cc index 35ee64d7eb938..199ccc485eb4e 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 f9d8c2eb3a974..80438a6556de5 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"); } -- 2.39.5