From ff683fc5014c334080e363911b7157cf93ac8ffa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Mart=C3=ADn?= Date: Wed, 22 Dec 2010 18:40:35 +0100 Subject: [PATCH] Bug #317: Before migration, the RM checks if another migration has just started. --- src/rm/RequestManagerMigrate.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/rm/RequestManagerMigrate.cc b/src/rm/RequestManagerMigrate.cc index cd03ab3e67..58cbdfb9ca 100644 --- a/src/rm/RequestManagerMigrate.cc +++ b/src/rm/RequestManagerMigrate.cc @@ -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; }