From df55ab00a3ab4c57d7f4730484ec8f9c0f98b05e Mon Sep 17 00:00:00 2001 From: Zhang Shaowen Date: Fri, 6 Jan 2017 17:57:21 +0800 Subject: [PATCH] rgw: error_code in error log is not right when data sync fails. Fixes: http://tracker.ceph.com/issues/18437 Signed-off-by: Zhang Shaowen --- 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 48276e79150e3..167442037f5b8 100644 --- a/src/rgw/rgw_data_sync.cc +++ b/src/rgw/rgw_data_sync.cc @@ -2249,7 +2249,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, "failed to sync object")); } done: if (sync_status == 0) { -- 2.47.3