]> git.proxmox.com Git - pve-manager.git/commit - PVE/API2/VZDump.pm
vzdump: getlock: return lock file handle and let the caller close it
authorFabian Ebner <f.ebner@proxmox.com>
Mon, 12 Apr 2021 08:47:31 +0000 (10:47 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 12 Apr 2021 12:36:08 +0000 (14:36 +0200)
commit875c2e5aaede80e71a2daaf90f472abd0407a9ba
tree81456945680f1d1139a03e3f78722db59266af7d
parent164651dab6004e70eba8e2870575d1b2492d3ba9
vzdump: getlock: return lock file handle and let the caller close it

so it doesn't get out of scope too early.

Regression introduced by 5620e5761efc6617ee8e8b004cfdd604547125fc as pointed
out by Fabian Grünbichler.

Reported in the community forum:
https://forum.proxmox.com/threads/limit-simultaneous-backup-jobs.87489

Suggested-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
PVE/API2/VZDump.pm
PVE/VZDump.pm