mirror of
https://github.com/ceph/ceph
synced 2025-03-11 02:39:05 +00:00
crush: fix retry histogram array overflow due to indexing error
Signed-off-by: caleb miles <caleb.miles@inktank.com>
This commit is contained in:
parent
37dea2d8db
commit
b88a5e5344
@ -453,7 +453,7 @@ reject:
|
|||||||
out[outpos] = item;
|
out[outpos] = item;
|
||||||
outpos++;
|
outpos++;
|
||||||
|
|
||||||
if (map->choose_tries)
|
if (map->choose_tries && ftotal <= map->choose_local_tries)
|
||||||
map->choose_tries[ftotal]++;
|
map->choose_tries[ftotal]++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user