]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw: error out if frontend did not send all data 5231/head
authorYehuda Sadeh <yehuda@redhat.com>
Thu, 25 Jun 2015 21:31:03 +0000 (14:31 -0700)
committerAbhishek Lekshmanan <abhishek.lekshmanan@ril.com>
Tue, 14 Jul 2015 09:27:07 +0000 (14:57 +0530)
commitec705336551436517c16bffdc6bf5467899ae4bb
treeccc219766f8b3bd6bc0fc302e93968b41db55207
parent9a79e8e7da5f34f1adaf6137e01bcd42766ae677
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