]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgwlc: correctly dimension lc shard index vector 38131/head
authorMatt Benjamin <mbenjamin@redhat.com>
Tue, 17 Nov 2020 01:20:05 +0000 (20:20 -0500)
committerMatt Benjamin <mbenjamin@redhat.com>
Tue, 17 Nov 2020 13:03:23 +0000 (08:03 -0500)
commit988c35b374260961842bb8e7514a7f5fc7d7767c
tree3929affdbac1721ae3705bdc68a25a4037c7e272
parent8d4a8735c3a13ec1583475c8524b19a33d1369f6
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>
src/rgw/rgw_lc.cc