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:
parent
21eef9568f
commit
83c1b9d993
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user