]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw: error out if frontend did not send all data 5234/head
authorYehuda Sadeh <yehuda@redhat.com>
Thu, 25 Jun 2015 21:31:03 +0000 (14:31 -0700)
committerNathan Cutler <ncutler@suse.com>
Tue, 14 Jul 2015 10:09:31 +0000 (12:09 +0200)
commit4e7de5b5f0e32d1183e2a0490d65e4e01490d942
treed18f8585b7054dc2428c953c8f8f28528dd246aa
parent741f0c235228b371486574ba0c3fbf55729e03bd
rgw: error out if frontend did not send all data

Fixes: #11851
The civetweb mg_write() doesn't return error when it can't flush all data
to the user, it just sends the total number of bytes written. Modified the
client io to return total number of bytes and return an error if didn't
send anything.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
(cherry picked from commit daa679c3dd3770a6d5421e2cc9a36924f4550439)
src/rgw/rgw_civetweb.cc
src/rgw/rgw_client_io.cc