mirror of
https://github.com/ceph/ceph
synced 2025-01-03 01:22:53 +00:00
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:
commit
30dc6f971b
@ -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++;
|
||||
|
Loading…
Reference in New Issue
Block a user