From 37bf776dc7a6c732c8234b88463d3605838fab6c Mon Sep 17 00:00:00 2001 From: zhangshaowen Date: Fri, 25 Oct 2019 11:29:40 +0800 Subject: [PATCH] rgw: don't print error log when list reshard result is not truncated. Signed-off-by: zhangshaowen --- src/rgw/rgw_reshard.cc | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/rgw/rgw_reshard.cc b/src/rgw/rgw_reshard.cc index 4c05001199d71..47aeb73efa8d9 100644 --- a/src/rgw/rgw_reshard.cc +++ b/src/rgw/rgw_reshard.cc @@ -838,12 +838,13 @@ int RGWReshard::list(int logshard_num, string& marker, uint32_t max, std::listctx()) << "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 + } 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; - } + } + } } return ret; -- 2.39.5