From d7f4b3ad5b416b3318f2e97a063f40fc5af07e41 Mon Sep 17 00:00:00 2001 From: Tianshan Qu Date: Tue, 19 Jun 2018 13:31:17 +0800 Subject: [PATCH] rgw: set cr state if aio_read err return in RGWCloneMetaLogCoroutine fixes: http://tracker.ceph.com/issues/24566 Signed-off-by: Tianshan Qu --- src/rgw/rgw_sync.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rgw/rgw_sync.cc b/src/rgw/rgw_sync.cc index eb199acf9b9..17ac58ca9ec 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); -- 2.39.5