]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: display errors of object sync failed in sync error list
authorlvshanchun <lvshanchun@gmail.com>
Mon, 18 Dec 2017 08:37:04 +0000 (16:37 +0800)
committerCasey Bodley <cbodley@redhat.com>
Wed, 9 May 2018 17:04:54 +0000 (13:04 -0400)
Signed-off-by: lvshanchun <lvshanchun@gmail.com>
(cherry picked from commit 39fd90c8ad2ce5af8d074a7f52d12dea3b06c730)

src/rgw/rgw_data_sync.cc

index c9b0f348332a23610dd7ccd2a41ca7ed45319f9d..e24bd40cd9a57557f893c6bb5a48d528428d0f70 100644 (file)
@@ -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) {