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

M #-: Prevet race condition on Image state update

(cherry picked from commit 3333b780ce6e3a757b595bd96aac6688a2a97e0f)
This commit is contained in:
Ruben S. Montero 2021-04-08 18:06:24 +02:00
parent 697da3a3e1
commit 4601faa857
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: