1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-01-11 05:17:41 +03:00

F #4809: Fix cache issue when the VM outated set is modified

This commit is contained in:
Ruben S. Montero 2017-05-30 12:06:27 +02:00
parent 54c1fbaa68
commit 75b8889e08

View File

@ -1616,7 +1616,7 @@ void LifeCycleManager::retry(VirtualMachine * vm)
void LifeCycleManager::updatesg_action(const LCMAction& la)
{
int vmid;
int vmid, rc;
VirtualMachine * vm;
int sgid = la.vm_id();
@ -1636,16 +1636,17 @@ void LifeCycleManager::updatesg_action(const LCMAction& la)
bool is_tmpl = false;
bool is_update= false;
if (sg->get_outdated(vmid) != 0)
{
sgpool->update(sg);
sg->unlock();
rc = sg->get_outdated(vmid);
return;
}
sgpool->update(sg);
sg->unlock();
if ( rc != 0 )
{
return;
}
vm = vmpool->get(vmid, true);
if ( vm == 0 )