]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
librgw: fix RGWReadRequest send_response_data
authorMatt Benjamin <mbenjamin@redhat.com>
Sun, 17 Jan 2016 19:33:03 +0000 (14:33 -0500)
committerMatt Benjamin <mbenjamin@redhat.com>
Fri, 12 Feb 2016 17:08:09 +0000 (12:08 -0500)
commit0eda995ca4b152678ba14832b09d8d8d1eafd392
tree03aaad581a2cca5b283c013efab6a7f5c1ac3b38
parent06aff8730876a7d357b27c7ad81f981b675448ec
librgw: fix RGWReadRequest send_response_data

In hindsight, it seems clear how to consume the available bytes and
account for the bytes written into the caller's buffer.

Verified by unit test on data from S3, with a 6M file read in 1M
chunks, the preferred max read in modern Linux kernel NFS.

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
src/rgw/rgw_file.cc
src/rgw/rgw_file.h
src/test/librgw_file_nfsns.cc