summaryrefslogtreecommitdiffstats
path: root/src/rgw/rgw_reshard.cc
diff options
context:
space:
mode:
authorYehuda Sadeh <yehuda@redhat.com>2017-05-25 01:57:28 +0200
committerYehuda Sadeh <yehuda@redhat.com>2017-06-05 22:18:02 +0200
commit2417c2c0c63cc32be10caf0b8b95e5773b57a369 (patch)
tree8546ba31f6684da18061490d0387ea6a1986031d /src/rgw/rgw_reshard.cc
parentrgw: run resharding thread only on master zone (diff)
downloadceph-2417c2c0c63cc32be10caf0b8b95e5773b57a369.tar.xz
ceph-2417c2c0c63cc32be10caf0b8b95e5773b57a369.zip
rgw: ignore -ENOENT on bi_list()
just treat it as success with empty result Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Diffstat (limited to 'src/rgw/rgw_reshard.cc')
-rw-r--r--src/rgw/rgw_reshard.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rgw/rgw_reshard.cc b/src/rgw/rgw_reshard.cc
index 1feaeb91708..fcd140bc93d 100644
--- a/src/rgw/rgw_reshard.cc
+++ b/src/rgw/rgw_reshard.cc
@@ -405,7 +405,7 @@ int RGWBucketReshard::do_reshard(
while (is_truncated) {
entries.clear();
ret = store->bi_list(bucket, i, string(), marker, max_entries, &entries, &is_truncated);
- if (ret < 0) {
+ if (ret < 0 && ret != -ENOENT) {
derr << "ERROR: bi_list(): " << cpp_strerror(-ret) << dendl;
return -ret;
}