]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: set cr state if aio_read err return in RGWCloneMetaLogCoroutine 22880/head
authorTianshan Qu <tianshan@xsky.com>
Tue, 19 Jun 2018 05:31:17 +0000 (13:31 +0800)
committerNathan Cutler <ncutler@suse.com>
Thu, 5 Jul 2018 18:21:55 +0000 (20:21 +0200)
fixes: http://tracker.ceph.com/issues/24566

Signed-off-by: Tianshan Qu <tianshan@xsky.com>
(cherry picked from commit d7f4b3ad5b416b3318f2e97a063f40fc5af07e41)

src/rgw/rgw_sync.cc

index 660b10b6897dff8f5a7fed90eb91f460e7bf4450..3cde6e5812708cb8efc4407ae0d67cbe23210395 100644 (file)
@@ -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);