mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-21 12:22:38 +09:00
Revert "Revert "Fix deadlock when deleting a host with running VMs""
This reverts commit ef260045a1.
This commit is contained in:
1 parent
1a91738f4e
commit
729ea754d4
1 file changed
+3
@@ -157,6 +157,9 @@ int HostDelete::drop(int oid, PoolObjectSQL * object, string& error_msg)
|
||||
if ( host->get_share_running_vms() > 0 )
|
||||
{
|
||||
error_msg = "Can not remove a host with running VMs";
|
||||
|
||||
host->unlock();
|
||||
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user