1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-29 18:50:08 +03:00

Lock for any missing unlock callback during creation

This commit is contained in:
Ruben S. Montero 2018-07-12 11:36:30 +02:00
parent c871bb9842
commit 13eb030edb

View File

@ -1080,6 +1080,12 @@ int VirtualMachine::insert(SqlDB * db, string& error_str)
goto error_update;
}
//-------------------------------------------------------------------------
//Check for missing unlock callbacks during creation
//-------------------------------------------------------------------------
Nebula::instance().get_lcm()->trigger(LCMAction::DISK_LOCK_SUCCESS, oid);
return 0;
error_update: