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:
parent
ead26711f1
commit
3333b780ce
@ -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