mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-22 18:50:08 +03:00
bug #721: unlock objects if returned as invalid in get operations
This commit is contained in:
parent
dcf4ce4a5e
commit
5f873771ec
@ -261,6 +261,8 @@ 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