[pve-devel] [PATCH guest-common 1/2] Avoid duplication by using lock_config_mode
Fabian Ebner
f.ebner at proxmox.com
Thu Apr 23 13:51:19 CEST 2020
No functional change is intended.
Signed-off-by: Fabian Ebner <f.ebner at proxmox.com>
---
PVE/AbstractConfig.pm | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/PVE/AbstractConfig.pm b/PVE/AbstractConfig.pm
index beb10c7..f1b395c 100644
--- a/PVE/AbstractConfig.pm
+++ b/PVE/AbstractConfig.pm
@@ -259,13 +259,7 @@ sub load_current_config {
sub lock_config_full {
my ($class, $vmid, $timeout, $code, @param) = @_;
- my $filename = $class->config_file_lock($vmid);
-
- my $res = lock_file($filename, $timeout, $code, @param);
-
- die $@ if $@;
-
- return $res;
+ return $class->lock_config_mode($vmid, $timeout, 0, $code, @param);
}
sub create_and_lock_config {
--
2.20.1
More information about the pve-devel
mailing list