]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: fix bi_list to return max entries not max-1
authorOrit Wasserman <owasserm@redhat.com>
Tue, 1 May 2018 15:41:29 +0000 (18:41 +0300)
committerOrit Wasserman <owasserm@redhat.com>
Sun, 10 Jun 2018 05:15:33 +0000 (08:15 +0300)
Fixes: http://tracker.ceph.com/issues/24483
Signed-off-by: Orit Wasserman <owasserm@redhat.com>
src/cls/rgw/cls_rgw.cc

index bb8876cf8a4fa620cb08c93714dfd09fcfae6bbe..911f8803c0c99356e6973dbb9f5e6c4e1e587524 100644 (file)
@@ -2551,7 +2551,7 @@ static int rgw_bi_list_op(cls_method_context_t hctx, bufferlist *in, bufferlist
   }
 
   op_ret.is_truncated = (count >= max) || more;
-  while (count >= max) {
+  while (count > max) {
     op_ret.entries.pop_back();
     count--;
   }