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: v12.2.6~131^2~10 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=370356f8d1c9ab9a6c0f81319a1229ad9687870b;p=ceph.git rgw: display errors of object sync failed in sync error list Signed-off-by: lvshanchun (cherry picked from commit 39fd90c8ad2ce5af8d074a7f52d12dea3b06c730) --- diff --git a/src/rgw/rgw_data_sync.cc b/src/rgw/rgw_data_sync.cc index c9b0f348332a..e24bd40cd9a5 100644 --- a/src/rgw/rgw_data_sync.cc +++ b/src/rgw/rgw_data_sync.cc @@ -2313,7 +2313,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) {