]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: fix miss handle curl error return 28383/head
authorTianshan Qu <tianshan@xsky.com>
Fri, 31 May 2019 10:37:44 +0000 (18:37 +0800)
committerXiaoxi CHEN <xiaoxchen@ebay.com>
Wed, 5 Jun 2019 02:28:55 +0000 (19:28 -0700)
commit21d6c307b9af2722f918096dd6d3c4dd787dc846
tree384aa78ae7546a424946cd8d6177e42a1125a8a2
parentfc621bfa14d34e0280a4d11d17c68ca2aa90ad26
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>
(cherry picked from commit 9b7025857026c64cf076e82d762556ac2bcd2625)
src/rgw/rgw_http_client.cc