]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: fix bucket index list minor calculation bug 44852/head
authorJ. Eric Ivancich <ivancich@redhat.com>
Wed, 12 Jan 2022 18:41:42 +0000 (13:41 -0500)
committerKonstantin Shalygin <k0ste@k0ste.ru>
Sun, 6 Feb 2022 10:45:25 +0000 (17:45 +0700)
commitbadb8f1106980e30a938c44a37b22a91b920b5f6
tree983e8b11770b081a51dd147d789fa20aa7aafd0b
parenta94e94ded2f1883c7871427d720d9cb6269dc9df
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