]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: set cr state if aio_read err return in RGWCloneMetaLogCoroutine 22942/head
authorTianshan Qu <tianshan@xsky.com>
Tue, 19 Jun 2018 05:31:17 +0000 (13:31 +0800)
committerPrashant D <pdhange@redhat.com>
Mon, 9 Jul 2018 01:20:48 +0000 (21:20 -0400)
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 bd164b6231547f1483cfbc4a3efc5b5c1b745c42..474d474b0f676ecec4e14308c54ec01842dacd23 100644 (file)
@@ -2248,7 +2248,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);