Commit fb0c774b authored by Oleg Ponomarev's avatar Oleg Ponomarev Committed by Klaus Aehlig

Bugfix for cluster location score calculation

Location score was updated incorrectly during the ReplaceAndFailover
move. Now it is corrected.
Signed-off-by: default avatarOleg Ponomarev <onponomarev@gmail.com>
Signed-off-by: default avatarKlaus Aehlig <aehlig@google.com>
Reviewed-by: default avatarKlaus Aehlig <aehlig@google.com>
parent 32a82f77
......@@ -568,7 +568,7 @@ applyMoveEx force nl inst (ReplaceAndFailover new_pdx) =
tgt_n = Container.find new_pdx nl
int_p = Node.removePri old_p inst
int_s = Node.removeSec old_s inst
new_inst = Instance.setBoth (setInstanceLocationScore inst int_s tgt_n)
new_inst = Instance.setBoth (setInstanceLocationScore inst tgt_n int_p)
new_pdx old_pdx
force_s = Node.offline old_s || force
new_nl = do -- OpResult
......
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