From: Or Friedmann Date: Thu, 16 Apr 2020 09:19:27 +0000 (+0300) Subject: rgw: Fix reshard log so we can know why the reshard is returning error X-Git-Tag: v16.1.0~2336^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=ff4ac89cfe84e3b93fe2b81f84c2e0f6fb8ee1ce;p=ceph.git rgw: Fix reshard log so we can know why the reshard is returning error Fix reshard log so we can know why the reshard is returning error Signed-off-by: Or Friedmann --- diff --git a/src/rgw/rgw_reshard.cc b/src/rgw/rgw_reshard.cc index d1d42fde1c66..ceb896cd8490 100644 --- a/src/rgw/rgw_reshard.cc +++ b/src/rgw/rgw_reshard.cc @@ -869,11 +869,12 @@ int RGWReshard::list(int logshard_num, string& marker, uint32_t max, std::listgetRados()->reshard_pool_ctx, logshard_oid, marker, max, entries, is_truncated); if (ret < 0) { + lderr(store->ctx()) << "ERROR: failed to list reshard log entries, oid=" << logshard_oid << " " + << "marker=" << marker << " " << cpp_strerror(ret) << dendl; if (ret == -ENOENT) { *is_truncated = false; ret = 0; } else { - lderr(store->ctx()) << "ERROR: failed to list reshard log entries, oid=" << logshard_oid << dendl; if (ret == -EACCES) { lderr(store->ctx()) << "access denied to pool " << store->svc()->zone->get_zone_params().reshard_pool << ". Fix the pool access permissions of your client" << dendl;