]> git.proxmox.com Git - qemu-server.git/commit
api/restore: do not trigger autostart task from locked context
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 16 Dec 2019 14:56:46 +0000 (15:56 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 16 Dec 2019 14:56:49 +0000 (15:56 +0100)
commit0c97024d35f5d98170c3052710503431f782dffc
treeddf6d698a2b7eac2403398aedbc6b56464d4c309
parentae200950d4be2aa00ba7635203fa18222f214487
api/restore: do not trigger autostart task from locked context

Do the same as for the "create" case, only trigger the "start after
create/restore" task after the locked "realcmd" was done. Else, the
start can never succeed, it also acquires a lock, but restore only
release it once outside of realcmd.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
PVE/API2/Qemu.pm