]> git.proxmox.com Git - pve-container.git/commit
clone_vm: reduce source flock scope
authorFabian Grünbichler <f.gruenbichler@proxmox.com>
Fri, 18 Jun 2021 12:51:20 +0000 (14:51 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 18 Jun 2021 15:53:13 +0000 (17:53 +0200)
commitcc1ffe7eed998e1dc18a34b772f369048685e35c
treefdd4bb58acc99cf145c974c9735f4d5a4670c6a6
parent52d287d9bc45b962db0987942322bcb542223b76
clone_vm: reduce source flock scope

set_lock already obtains the flock (since it does a read-modify-write
cycle), and the rest of this code does not touch the config file in any
fashion so no need to hold the flock either..

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
src/PVE/API2/LXC.pm