]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw: fix miss handle curl error return
authorTianshan Qu <tianshan@xsky.com>
Fri, 31 May 2019 10:37:44 +0000 (18:37 +0800)
committerTianshan Qu <tianshan@xsky.com>
Tue, 4 Jun 2019 03:33:17 +0000 (11:33 +0800)
commit9b7025857026c64cf076e82d762556ac2bcd2625
tree7a74d2babb9fd1e5568429448f38c0d2ee976792
parent1ee1bbb5492dcd3aa7b3e5b7fc723875bd3df136
rgw: fix miss handle curl error return

if meet tcp packet loss, curl return will be result=18(CURLE_PARTIAL_FILE)
and http_status=200, so sync will continue and cause content miss match.

Fixes: https://tracker.ceph.com/issues/39992
Signed-off-by: Tianshan Qu <tianshan@xsky.com>
src/rgw/rgw_http_client.cc