]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: add some comments
authorYehuda Sadeh <yehuda@inktank.com>
Mon, 22 Jul 2013 21:26:54 +0000 (14:26 -0700)
committerYehuda Sadeh <yehuda@inktank.com>
Mon, 22 Jul 2013 21:44:39 +0000 (14:44 -0700)
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
src/rgw/rgw_rest_s3.cc
src/rgw/rgw_rest_swift.cc

index 35ee64d7eb93888331d604f59bb466708b351f82..199ccc485eb4e56ae161f44e754aeab5b2bf3889 100644 (file)
@@ -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);
index f9d8c2eb3a97422243e41b85f746da2fefe7f9fd..80438a6556de553834a7c87576b5923ed3658512 100644 (file)
@@ -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");
     }