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: v14.0.1~941^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F22617%2Fhead;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 --- diff --git a/src/rgw/rgw_sync.cc b/src/rgw/rgw_sync.cc index eb199acf9b9c..17ac58ca9ec6 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);