]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: fetch_remote_obj() compares expected object size
authorCasey Bodley <cbodley@redhat.com>
Wed, 29 May 2019 21:11:13 +0000 (17:11 -0400)
committerNathan Cutler <ncutler@suse.com>
Wed, 24 Jul 2019 14:29:09 +0000 (16:29 +0200)
commite7f5a3fb562e96fb9a7c43e3976646da63a4a847
tree630a8cdac950e5465a478db9b748bb40dda1b90a
parentc1cd465c4f7a185c193fc8999a74b9ff428ac254
rgw: fetch_remote_obj() compares expected object size

if the size of object data received doesn't match the value returned in
the Rgwx-Object-Size header, fail with -EIO

Fixes: https://tracker.ceph.com/issues/39992
Signed-off-by: Xiaoxi CHEN <xiaoxchen@ebay.com>
Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit c6c4c5639ea34c49329719c2725886e740acd0b3)
src/rgw/rgw_rados.cc