Bug #317: Before migration, the RM checks if another migration has just started.

This commit is contained in:
Carlos Martín committed 2010-12-22 18:40:35 +01:00
1 parent cd05b5a1ef
commit ff683fc501
1 file changed
+3 -2
+3 -2
View File
@@ -107,8 +107,9 @@ void RequestManager::VirtualMachineMigrate::execute(
}
}
if ((vm->get_state() != VirtualMachine::ACTIVE) ||
(vm->get_lcm_state() != VirtualMachine::RUNNING))
if((vm->get_state() != VirtualMachine::ACTIVE) ||
(vm->get_lcm_state() != VirtualMachine::RUNNING) ||
(vm->hasPreviousHistory() && vm->get_previous_reason() == History::NONE))
{
goto error_state;
}