Skip to content

Commit

Permalink
rgw: add some comments
Browse files Browse the repository at this point in the history
Signed-off-by: Yehuda Sadeh <[email protected]>
  • Loading branch information
yehudasa committed Jul 22, 2013
1 parent c5025d4 commit 9f05db6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/rgw/rgw_rest_s3.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
3 changes: 3 additions & 0 deletions src/rgw/rgw_rest_swift.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
Expand Down

0 comments on commit 9f05db6

Please sign in to comment.