From: lvshanchun Date: Mon, 18 Dec 2017 08:37:04 +0000 (+0800) Subject: rgw: display errors of object sync failed in sync error list X-Git-Tag: v13.0.2~261^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=39fd90c8ad2ce5af8d074a7f52d12dea3b06c730;p=ceph.git rgw: display errors of object sync failed in sync error list Signed-off-by: lvshanchun --- diff --git a/src/rgw/rgw_data_sync.cc b/src/rgw/rgw_data_sync.cc index 40723a1e41ab..3bceb8ef24cf 100644 --- a/src/rgw/rgw_data_sync.cc +++ b/src/rgw/rgw_data_sync.cc @@ -2436,7 +2436,7 @@ public: sync_status = retcode; } if (!error_ss.str().empty()) { - yield call(sync_env->error_logger->log_error_cr(sync_env->conn->get_remote_id(), "data", error_ss.str(), -retcode, "failed to sync object")); + yield call(sync_env->error_logger->log_error_cr(sync_env->conn->get_remote_id(), "data", error_ss.str(), -retcode, string("failed to sync object") + cpp_strerror(-sync_status))); } done: if (sync_status == 0) {