]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: bi_list() initialize is_truncated if -ENOENT
authorYehuda Sadeh <yehuda@redhat.com>
Wed, 24 May 2017 23:55:21 +0000 (16:55 -0700)
committerYehuda Sadeh <yehuda@redhat.com>
Mon, 5 Jun 2017 20:17:54 +0000 (13:17 -0700)
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
src/rgw/rgw_rados.cc

index fb3abc2cc283db35d25d57e10cafb5af3b797264..72e222274fbaf94f5f0d0416a8c66e6975ecfbd8 100644 (file)
@@ -12377,6 +12377,9 @@ int RGWRados::bi_list(rgw_bucket& bucket, const string& obj_name, const string&
   }
 
   ret = cls_rgw_bi_list(bs.index_ctx, bs.bucket_obj, obj_name, marker, max, entries, is_truncated);
+  if (ret == -ENOENT) {
+    *is_truncated = false;
+  }
   if (ret < 0)
     return ret;