Commit 44d2bbac authored by Rafael Vieira Falcão's avatar Rafael Vieira Falcão
Browse files

Correction of bug at the optimistic consolidation of the loose hosts

parent 89a4945f
......@@ -104,8 +104,8 @@ public class VmAllocationPolicyMigrationSlaFixedTightHost extends VmAllocationPo
for (int i = 0; i < orderedLooseHosts.size(); i++) {
for (int j = orderedLooseHosts.size() - 1; j >= 0; j--) {
if(i >= j)
continue;
if(i == j || orderedLooseHosts.get(i).getVmList().isEmpty())
break;
for (Vm vm : orderedLooseHosts.get(i).getVmList()) {
if(orderedLooseHosts.get(j).isSuitableForVm(vm)) {
actualMigrationMap.put(vm, orderedLooseHosts.get(j));
......
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