Commit c424cdc8 authored by Iustin Pop's avatar Iustin Pop
Browse files

balance function: use the movable flag directly

Instead of deciding based on secondary node, use the new flag.
parent 39f979b8
......@@ -470,8 +470,7 @@ tryBalance ini_tbl disk_moves evac_mode =
Instance.pNode e `elem` bad_nodes)
else all_inst
reloc_inst = filter (\e -> Instance.sNode e /= Node.noSecondary)
reloc_inst = filter Instance.movable all_inst'
node_idx = map Node.idx . filter (not . Node.offline) $
Container.elems ini_nl
fin_tbl = checkMove node_idx disk_moves ini_tbl reloc_inst
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment