mirror of
https://github.com/ceph/ceph
synced 2024-12-17 08:57:28 +00:00
crush: bugfix in builder
This commit is contained in:
parent
2381870e22
commit
82d6aeb333
@ -120,7 +120,7 @@ int crush_add_bucket(struct crush_map *map,
|
||||
id = crush_get_next_bucket_id(map);
|
||||
pos = -1 - id;
|
||||
|
||||
while (pos > map->max_buckets) {
|
||||
while (pos >= map->max_buckets) {
|
||||
/* expand array */
|
||||
oldsize = map->max_buckets;
|
||||
if (map->max_buckets)
|
||||
|
Loading…
Reference in New Issue
Block a user