]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: don't print error log when list reshard result is not truncated. 31142/head
authorzhangshaowen <zhangshaowen@cmss.chinamobile.com>
Fri, 25 Oct 2019 03:29:40 +0000 (11:29 +0800)
committerzhangshaowen <zhangshaowen@cmss.chinamobile.com>
Fri, 25 Oct 2019 03:29:40 +0000 (11:29 +0800)
Signed-off-by: zhangshaowen <zhangshaowen@cmss.chinamobile.com>
src/rgw/rgw_reshard.cc

index 4c05001199d7138d04d648d5f52eed7acb1f4edc..47aeb73efa8d982f32e10535704659064534bd55 100644 (file)
@@ -838,12 +838,13 @@ int RGWReshard::list(int logshard_num, string& marker, uint32_t max, std::list<c
     if (ret == -ENOENT) {
       *is_truncated = false;
       ret = 0;
-    }
-    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
+    } 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;