提交 55bda7aa 编写于 作者: S Sage Weil

ceph: fix crush recursion

There was a longstanding problem with recursion through intervening
bucket types on complex hierarchies.
Signed-off-by: NSage Weil <sage@newdream.net>
上级 bfaf148e
......@@ -366,6 +366,7 @@ static int crush_choose(struct crush_map *map,
BUG_ON(item >= 0 ||
(-1-item) >= map->max_buckets);
in = map->buckets[-1-item];
retry_bucket = 1;
continue;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册