]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw: RGWRados::get_obj() returns wrong len if len == 0 2859/head
authorYehuda Sadeh <yehuda@redhat.com>
Wed, 5 Nov 2014 06:05:03 +0000 (22:05 -0800)
committerYehuda Sadeh <yehuda@redhat.com>
Wed, 5 Nov 2014 06:05:03 +0000 (22:05 -0800)
commitfe7bf06366adaf787816d1e68f5e3f68e8c91134
treea730ea46d8ba228f18b4a6cd231c0ab2f18e809b
parentbf4d72a9603f1adffb8c3204bea21b0efe2190db
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>
src/rgw/rgw_rados.cc