]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
rgw: fix bucket index list minor calculation bug
authorJ. Eric Ivancich <ivancich@redhat.com>
Wed, 12 Jan 2022 18:41:42 +0000 (13:41 -0500)
committerJ. Eric Ivancich <ivancich@redhat.com>
Wed, 12 Jan 2022 19:02:15 +0000 (14:02 -0500)
commitaa7605151f0a5f467d50f13f27c7aef42a40cc39
tree5fb0a1a566bdac65a87f436cbee9be2ec712d76d
parenta8bb49d4d9c3b08fe5264295c14b424b4cbedd37
rgw: fix bucket index list minor calculation bug

When "bucket index list" traverses the different regions in the bucket
index assembling the output, it miscalculates how many entries to ask
for at one point. This fixes that.

This fixes previous "rgw: bucket index list can produce I/O errors".

Credit for finding this bug goes to Soumya Koduri <skoduri@redhat.com>.

Signed-off-by: J. Eric Ivancich <ivancich@redhat.com>
src/cls/rgw/cls_rgw.cc