From: Tianshan Qu Date: Tue, 19 Jun 2018 05:31:17 +0000 (+0800) Subject: rgw: set cr state if aio_read err return in RGWCloneMetaLogCoroutine X-Git-Tag: v13.2.1~44^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=c401ded644891f9c1d296a0e44eb8dfc7ee395ca;p=ceph.git rgw: set cr state if aio_read err return in RGWCloneMetaLogCoroutine fixes: http://tracker.ceph.com/issues/24566 Signed-off-by: Tianshan Qu (cherry picked from commit d7f4b3ad5b416b3318f2e97a063f40fc5af07e41) --- diff --git a/src/rgw/rgw_sync.cc b/src/rgw/rgw_sync.cc index 660b10b6897..3cde6e58127 100644 --- a/src/rgw/rgw_sync.cc +++ b/src/rgw/rgw_sync.cc @@ -2371,7 +2371,7 @@ int RGWCloneMetaLogCoroutine::state_send_rest_request() log_error() << "failed to send http operation: " << http_op->to_str() << " ret=" << ret << std::endl; http_op->put(); http_op = NULL; - return ret; + return set_cr_error(ret); } return io_block(0);