]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: error out if frontend did not send all data 5081/head
authorYehuda Sadeh <yehuda@redhat.com>
Thu, 25 Jun 2015 21:31:03 +0000 (14:31 -0700)
committerYehuda Sadeh <yehuda@redhat.com>
Thu, 25 Jun 2015 21:35:14 +0000 (14:35 -0700)
commitdaa679c3dd3770a6d5421e2cc9a36924f4550439
tree82c5fc5bfe6bf8d8d9a4dfc540dfe235956d90e9
parentc06fd71a1a3c7ef78fdc718a063beb1edb93a04a
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>
src/rgw/rgw_civetweb.cc
src/rgw/rgw_client_io.cc