Signed-off-by: zhangshaowen <zhangshaowen@cmss.chinamobile.com>
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;