1
0
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:
Carlos Martín 2011-09-21 04:16:27 -07:00
parent 0c85a849d9
commit 1b20904032

View File

@ -122,10 +122,9 @@ int PoolSQL::allocate(
else
{
rc = lastOID;
do_hooks(objsql, Hook::ALLOCATE);
}
do_hooks(objsql, Hook::ALLOCATE);
objsql->unlock();
delete objsql;