1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-21 14:50:08 +03:00

bug : solved potential deadlock in VM manager

This commit is contained in:
Ruben S. Montero 2010-06-09 19:47:22 +02:00
parent 21eef9568f
commit 83c1b9d993

View File

@ -830,12 +830,18 @@ void VirtualMachineManager::timer_action()
{
vm = vmpool->get(*it,true);
if ( vm == 0 || (!vm->hasHistory()))
if ( vm == 0 )
{
continue;
}
if (!vm->hasHistory())
{
os.str("");
os << "Monitoring VM " << *it << " but it has no history.";
NebulaLog::log("VMM", Log::ERROR, os);
vm->unlock();
continue;
}