mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-16 22:50:10 +03:00
bug: Fix deadlock when deleting the same object multiple times
(cherry picked from commit 2ca77fb8450a4a191ec9c0776d716a10cf7f9bf9)
This commit is contained in:
parent
5faea03dcd
commit
04effc5058
@ -296,6 +296,7 @@ int ImageManager::delete_image(int iid, const string& ds_data)
|
||||
|
||||
if ( imd == 0 )
|
||||
{
|
||||
img->unlock();
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
@ -187,6 +187,7 @@ PoolObjectSQL * PoolSQL::get(
|
||||
|
||||
if ( objectsql->isValid() == false )
|
||||
{
|
||||
objectsql->unlock();
|
||||
objectsql = 0;
|
||||
}
|
||||
}
|
||||
@ -276,7 +277,6 @@ PoolObjectSQL * PoolSQL::get(const string& name, int ouid, bool olock)
|
||||
if ( objectsql->isValid() == false )
|
||||
{
|
||||
objectsql->unlock();
|
||||
|
||||
objectsql = 0;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user