]> 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)
committerlvshanchun <lvshanchun@gmail.com>
Wed, 17 Jan 2018 03:08:45 +0000 (11:08 +0800)
Signed-off-by: lvshanchun <lvshanchun@gmail.com>
src/rgw/rgw_data_sync.cc

index 40723a1e41abe81133500ca2356d8f41641f7963..3bceb8ef24cf10056fdc8a104c7d1610fe60e9ca 100644 (file)
@@ -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) {