]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
Fix bytes_sent bugs.
authorMarcus Watts <mwatts@redhat.com>
Sun, 18 Jun 2017 22:18:39 +0000 (18:18 -0400)
committerMarcus Watts <mwatts@redhat.com>
Wed, 9 Aug 2017 01:54:57 +0000 (21:54 -0400)
commit0172aab860abe324923a392baf51f956a65b64a5
tree7ab1b04842d43bbcf9b5ca917cf6beadb4c79a2f
parentd89af4a3e88922fa9166577e03e3481ade6d2923
Fix bytes_sent bugs.

log bytes sent/received.
add cct to bufferingfilter
add cct to RGWRestfulIO
AccountingFilter - save cct for debugging output
implement AccountingFilter::complete_request() - account for bytes reported here.
BufferingFilter<T>::complete_request() - ignore counts from send_content_length() complete_header();

Code quality note:
this patch makes "cct" available for a lot of newly added debug
statements.  The debug statements are mostly not very useful (and should
go away in the future) - *But* the "cct" logic should be redone and
incorporated into some base class (such RestfulClient) so that it is
possible to easily add in debug statements such as these in the future.

Fixes: http://tracker.ceph.com/issues/19870
Signed-off-by: Marcus Watts <mwatts@redhat.com>
src/rgw/rgw_asio_frontend.cc
src/rgw/rgw_civetweb_frontend.cc
src/rgw/rgw_client_io.h
src/rgw/rgw_client_io_filters.h
src/rgw/rgw_fcgi_process.cc
src/rgw/rgw_loadgen_process.cc
src/rgw/rgw_log.cc