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:
parent
697da3a3e1
commit
4601faa857
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user