]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw: RGWRados::get_obj() returns wrong len if len == 0
authorYehuda Sadeh <yehuda@redhat.com>
Wed, 5 Nov 2014 06:05:03 +0000 (22:05 -0800)
committerYehuda Sadeh <yehuda@redhat.com>
Wed, 14 Jan 2015 23:51:44 +0000 (15:51 -0800)
commit31f5e332c616dbb7f7338af3ab37ac65ff66f733
tree407514c1f15215e60ef180af4f483c7cdbc0d435
parent8682d1b15e097ececd927dfbd096dbb46403afca
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