]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
radosgw: fix small sized chunked uploads with s3 17114/head
authorMarcus Watts <mwatts@redhat.com>
Wed, 16 Aug 2017 01:57:06 +0000 (21:57 -0400)
committerAbhishek Lekshmanan <abhishek@suse.com>
Mon, 21 Aug 2017 10:12:58 +0000 (12:12 +0200)
commit44a58e0a4a779eb5026341c614e550595a3f35c3
tree5576a3de34605b68f3b501c03c5a261193f44d57
parent33673bca96982653674a515933658cb44f8addea
radosgw: fix small sized chunked uploads with s3

The logic to compute the number of bytes to copy with a chunked file
upload was failing to take into account the amount of data that had been
consumed, but was still pending in the parse buffer.  This would cause
strange behavior ranging from "just works" to "fails".  There was also a
strange "works, one byte at a time" mode.  Using the correct stream_pos
offset eliminates the bad behavior.

This fix also adds debug statements to make the correct behavior easier to see.

Fixes: http://tracker.ceph.com/issues/21003
Signed-off-by: Marcus Watts <mwatts@redhat.com>
(cherry picked from commit 96c4a26b46343f2850adae4f49e5b8be5104e0b5)
src/rgw/rgw_auth_s3.cc