[pve-devel] r6454 - pve-storage/pve2/PVE

svn-commits at proxmox.com svn-commits at proxmox.com
Thu Aug 11 07:37:04 CEST 2011


Author: dietmar
Date: 2011-08-11 07:37:04 +0200 (Thu, 11 Aug 2011)
New Revision: 6454

Modified:
   pve-storage/pve2/PVE/Storage.pm
Log:
fix lock_file call


Modified: pve-storage/pve2/PVE/Storage.pm
===================================================================
--- pve-storage/pve2/PVE/Storage.pm	2011-08-11 05:33:15 UTC (rev 6453)
+++ pve-storage/pve2/PVE/Storage.pm	2011-08-11 05:37:04 UTC (rev 6454)
@@ -587,13 +587,12 @@
 sub cluster_lock_storage {
     my ($storeid, $shared, $timeout, $func, @param) = @_;
 
-    my $locktext = "local storage $storeid";
     my $res;
     if (!$shared) {
 	my $lockid = "pve-storage-$storeid";
 	my $lockdir = "/var/lock/pve-manager";
 	mkdir $lockdir;
-	$res = PVE::Tools::lock_file("$lockdir/$lockid", $timeout, $locktext, $func, @param); 
+	$res = PVE::Tools::lock_file("$lockdir/$lockid", $timeout, $func, @param); 
 	die $@ if $@;
     } else {
 	$res = PVE::Cluster::cfs_lock_storage($storeid, $timeout, $func, @param);



More information about the pve-devel mailing list