[pve-devel] r6500 - in pve-cluster/trunk/data: . PVE

svn-commits at proxmox.com svn-commits at proxmox.com
Fri Aug 19 08:15:31 CEST 2011


Author: dietmar
Date: 2011-08-19 08:15:31 +0200 (Fri, 19 Aug 2011)
New Revision: 6500

Modified:
   pve-cluster/trunk/data/ChangeLog
   pve-cluster/trunk/data/PVE/Cluster.pm
Log:
(ipcc_send_rec_json, ipcc_send_rec): fix error check 



Modified: pve-cluster/trunk/data/ChangeLog
===================================================================
--- pve-cluster/trunk/data/ChangeLog	2011-08-19 05:41:34 UTC (rev 6499)
+++ pve-cluster/trunk/data/ChangeLog	2011-08-19 06:15:31 UTC (rev 6500)
@@ -2,6 +2,7 @@
 
 	* PVE/Cluster.pm (check_cfs_quorum): use 'local' instead of
 	'prv/lock', because this link always exists on the file system.
+	(ipcc_send_rec_json, ipcc_send_rec): fix error check 
 
 2011-08-18  Proxmox Support Team  <support at proxmox.com>
 

Modified: pve-cluster/trunk/data/PVE/Cluster.pm
===================================================================
--- pve-cluster/trunk/data/PVE/Cluster.pm	2011-08-19 05:41:34 UTC (rev 6499)
+++ pve-cluster/trunk/data/PVE/Cluster.pm	2011-08-19 06:15:31 UTC (rev 6500)
@@ -320,7 +320,7 @@
 
     my $res = PVE::IPCC::ipcc_send_rec($msgid, $data);
 
-    die "ipcc_send_rec failed: $!\n" if !defined($res) && ($! = 0);
+    die "ipcc_send_rec failed: $!\n" if !defined($res) && ($! != 0);
 
     return $res;
 };
@@ -330,8 +330,6 @@
 
     my $res = PVE::IPCC::ipcc_send_rec($msgid, $data);
 
-    die "ipcc_send_rec failed: $!\n" if !defined($res) && ($! = 0);
-
     return decode_json($res);
 };
 




More information about the pve-devel mailing list