mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-21 14:50:08 +03:00
Bug #820: Execute the ALLOCATE hooks only if the allocation is successful
This commit is contained in:
parent
0c85a849d9
commit
1b20904032
@ -122,10 +122,9 @@ int PoolSQL::allocate(
|
||||
else
|
||||
{
|
||||
rc = lastOID;
|
||||
do_hooks(objsql, Hook::ALLOCATE);
|
||||
}
|
||||
|
||||
do_hooks(objsql, Hook::ALLOCATE);
|
||||
|
||||
objsql->unlock();
|
||||
|
||||
delete objsql;
|
||||
|
Loading…
x
Reference in New Issue
Block a user