]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: RGWRados::get_obj() returns wrong len if len == 0 3579/head
authorYehuda Sadeh <yehuda@redhat.com>
Wed, 5 Nov 2014 06:05:03 +0000 (22:05 -0800)
committerLoic Dachary <ldachary@redhat.com>
Mon, 2 Feb 2015 15:05:47 +0000 (16:05 +0100)
commitd759e71c8167ea29c8fda9483039a3e491083da5
tree7ab19a8919cfa5f4d25259242becb524b9faae27
parent1ccd73a16e1829b5519ec5b83b2554af173ad052
rgw: RGWRados::get_obj() returns wrong len if len == 0

Fixes: #9877
We only updated if len was > 0, should update it if r >= 0. This was the
culprit for issue #9877.
Backport: giant, firefly

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