]> git.proxmox.com Git - qemu-server.git/commit
pass $skiplock all the way through to destroy_vm
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Fri, 5 Feb 2016 07:46:35 +0000 (08:46 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Mon, 8 Feb 2016 10:52:23 +0000 (11:52 +0100)
commit15cc878469ce70b0d2d898b985cb850f5274cff7
treed57bc00e015ef0faffe43ecd5c69fec906bf238e
parentf7b4356fe6550c968d8e321d9420b97a43098f84
pass $skiplock all the way through to destroy_vm

The API passes $skiplock to vm_destroy() which performed a
check conditionally depending on the $skiplock parameter and
then simply calls destroy_vm() inside lock_config() which
did yet another check_lock() without any way to avoid that.

Added the $skiplock parameter to destroy_vm() and removed
the conditional check in vm_destroy() as both happened after
locking the config.
PVE/QemuServer.pm