Skip to content

Commit

Permalink
rgw: display errors of object sync failed in sync error list
Browse files Browse the repository at this point in the history
Signed-off-by: lvshanchun <lvshanchun@gmail.com>
  • Loading branch information
Leeshine committed Dec 18, 2017
1 parent 45cb2d8 commit 3862dad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rgw/rgw_data_sync.cc
Expand Up @@ -2429,7 +2429,7 @@ class RGWBucketSyncSingleEntryCR : public RGWCoroutine {
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) {
Expand Down

0 comments on commit 3862dad

Please sign in to comment.