Merge pull request #38131 from linuxbox2/wip-lc-ix

rgwlc: correctly dimension lc shard index vector

Reviewed-by: Daniel Gryniewicz <dang@redhat.com>
This commit is contained in:
J. Eric Ivancich 2020-12-10 10:06:40 -05:00 committed by GitHub
commit 30dc6f971b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1644,7 +1644,7 @@ int RGWLC::list_lc_progress(string& marker, uint32_t max_entries,
static inline vector<int> random_sequence(uint32_t n)
{
vector<int> v(n-1, 0);
vector<int> v(n, 0);
std::generate(v.begin(), v.end(),
[ix = 0]() mutable {
return ix++;