From 39fd90c8ad2ce5af8d074a7f52d12dea3b06c730 Mon Sep 17 00:00:00 2001 From: lvshanchun Date: Mon, 18 Dec 2017 16:37:04 +0800 Subject: [PATCH] rgw: display errors of object sync failed in sync error list Signed-off-by: lvshanchun --- src/rgw/rgw_data_sync.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rgw/rgw_data_sync.cc b/src/rgw/rgw_data_sync.cc index 40723a1e41a..3bceb8ef24c 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) { -- 2.47.3