From: Zhang Shaowen Date: Fri, 6 Jan 2017 09:57:21 +0000 (+0800) Subject: rgw: error_code in error log is not right when data sync fails. X-Git-Tag: v12.0.1~410^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=df55ab00a3ab4c57d7f4730484ec8f9c0f98b05e;p=ceph.git 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 --- 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) {