]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: Fix reshard log so we can know why the reshard is returning error 31889/head
authorOr Friedmann <ofriedma@redhat.com>
Thu, 16 Apr 2020 09:19:27 +0000 (12:19 +0300)
committerOr Friedmann <ofriedma@redhat.com>
Thu, 16 Apr 2020 09:19:27 +0000 (12:19 +0300)
Fix reshard log so we can know why the reshard is returning error

Signed-off-by: Or Friedmann <ofriedma@redhat.com>
src/rgw/rgw_reshard.cc

index d1d42fde1c66f50bf14fb8ed320c17f2e5f254eb..ceb896cd84906a91f23aa7b11b8a59cd701bdfff 100644 (file)
@@ -869,11 +869,12 @@ int RGWReshard::list(int logshard_num, string& marker, uint32_t max, std::list<c
   int ret = cls_rgw_reshard_list(store->getRados()->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;