]> git.apps.os.sepia.ceph.com Git - ceph.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)
committerDan van der Ster <daniel.vanderster@cern.ch>
Fri, 18 Feb 2022 21:59:20 +0000 (22:59 +0100)
commit70ba44d15d8dec9ecc5ccbb34290ae6233cb939e
tree1a0e3c19304cdda2b549261ee975f92e4c6042ed
parent6b6c069046c7e6b5d0a5a6b8558909a4ada50f27
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>
(cherry picked from commit aa7605151f0a5f467d50f13f27c7aef42a40cc39)
src/cls/rgw/cls_rgw.cc