]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: ignore -ENOENT on bi_list()
authorYehuda Sadeh <yehuda@redhat.com>
Wed, 24 May 2017 23:57:28 +0000 (16:57 -0700)
committerYehuda Sadeh <yehuda@redhat.com>
Mon, 5 Jun 2017 20:18:02 +0000 (13:18 -0700)
just treat it as success with empty result

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
src/rgw/rgw_reshard.cc

index 1feaeb91708fd49bf9a6ff3c4b36c20aec7cdf29..fcd140bc93d97d4fa55a35d18be35745f18cfe9f 100644 (file)
@@ -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;
       }