Skip to content
Snippets Groups Projects
Commit 7073b3a8 authored by Iustin Pop's avatar Iustin Pop
Browse files

hail: don't select the primary as new secondary


This just adds the primary node of the instance as 'non-allocable'
during the choosing of the new secondary.

Signed-off-by: default avatarIustin Pop <iustin@google.com>
Reviewed-by: default avatarGuido Trotter <ultrotter@google.com>
parent f25508be
No related branches found
No related tags found
No related merge requests found
......@@ -1107,10 +1107,11 @@ tryNodeEvac _ ini_nl ini_il mode idxs =
splitCluster ini_nl ini_il
(fin_nl, fin_il, esol) =
foldl' (\state@(nl, il, _) inst ->
let gdx = instancePriGroup nl inst in
let gdx = instancePriGroup nl inst
pdx = Instance.pNode inst in
updateEvacSolution state (Instance.idx inst) $
availableGroupNodes group_ndx
excl_ndx gdx >>=
(IntSet.insert pdx excl_ndx) gdx >>=
nodeEvacInstance nl il mode inst gdx
)
(ini_nl, ini_il, emptyEvacSolution)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment