]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgwlc: correctly dimension lc shard index vector 38824/head
authorMatt Benjamin <mbenjamin@redhat.com>
Tue, 17 Nov 2020 01:20:05 +0000 (20:20 -0500)
committerNathan Cutler <ncutler@suse.com>
Fri, 8 Jan 2021 17:54:18 +0000 (18:54 +0100)
commit0fc7311a6f274da2aae9c68c36cde9952a443999
tree1baddb0a088e98f26fb45bf642d607dc0f5a566e
parent79adcfe1c91d71a042ed33a77a29dea96f116e6e
rgwlc: correctly dimension lc shard index vector

The new parallel lc code relies on a vector of indexes to seed
random-order shard processing.  This vector was dimensioned to
n (the shard count) - 1--which appears to elide the high index.

Found and reported by Ji Weiqiang <badwolflord@163.com>

Fixes: https://tracker.ceph.com/issues/48255
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
(cherry picked from commit 988c35b374260961842bb8e7514a7f5fc7d7767c)
src/rgw/rgw_lc.cc