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

M #-: Prevet race condition on Image state update

This commit is contained in:
Ruben S. Montero 2021-04-08 18:06:24 +02:00
parent ead26711f1
commit 3333b780ce
No known key found for this signature in database
GPG Key ID: A0CEA6FA880A1D87

View File

@ -2095,7 +2095,7 @@ void LifeCycleManager::trigger_disk_lock_success(int vid)
for (auto id : ids)
{
if (auto image = ipool->get_ro(id))
if (auto image = ipool->get(id))
{
switch (image->get_state()) {
case Image::USED: