We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea89a26 commit 34bdb57Copy full SHA for 34bdb57
ocaml/xapi/xapi_ha_vm_failover.ml
@@ -1615,7 +1615,7 @@ let restart_auto_run_vms ~__context ~last_live_set ~live_set n =
1615
let best_effort_vms =
1616
(* Carefully decide which best-effort VMs should attempt to start. *)
1617
let all_prot_is_ok = List.for_all (fun (_, r) -> r = Ok ()) started in
1618
- let is_better = List.length live_set > List.length last_live_set in
+ let is_better = List.compare_lengths live_set last_live_set > 0 in
1619
( match (all_prot_is_ok, is_better, last_live_set = live_set) with
1620
| true, true, _ ->
1621
(* Try to start all the best-effort halted VMs when HA is being
0 commit comments