]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
radosgw: fix small sized chunked uploads with s3 17040/head
authorMarcus Watts <mwatts@redhat.com>
Wed, 16 Aug 2017 01:57:06 +0000 (21:57 -0400)
committerMarcus Watts <mwatts@redhat.com>
Wed, 16 Aug 2017 01:57:06 +0000 (21:57 -0400)
commit96c4a26b46343f2850adae4f49e5b8be5104e0b5
tree2b580ac4bc94b63f5a06b23d646fe489877adb8a
parent4d3d72fd1c5e0e3913ee9f9b7f8ce2bfe6d4b6fa
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>
src/rgw/rgw_auth_s3.cc