Skip to content

Commit

Permalink
rgw: fix bi_list to return max entries not max-1
Browse files Browse the repository at this point in the history
Fixes: http://tracker.ceph.com/issues/24483
Signed-off-by: Orit Wasserman <owasserm@redhat.com>
  • Loading branch information
oritwas committed Jun 10, 2018
1 parent 95220c9 commit fc44655
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cls/rgw/cls_rgw.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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--;
}
Expand Down

0 comments on commit fc44655

Please sign in to comment.