[pve-devel] [PATCH cluster] pvecm delnode: pass code reference correctly

Thomas Lamprecht t.lamprecht at proxmox.com
Wed Aug 2 13:27:30 CEST 2017


Signed-off-by: Thomas Lamprecht <t.lamprecht at proxmox.com>
---

code was no called outside of locked context and its return value was passed
to cfs_lock_file... doh.

 data/PVE/CLI/pvecm.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/data/PVE/CLI/pvecm.pm b/data/PVE/CLI/pvecm.pm
index 8bb26d9..799665a 100755
--- a/data/PVE/CLI/pvecm.pm
+++ b/data/PVE/CLI/pvecm.pm
@@ -455,7 +455,7 @@ __PACKAGE__->register_method ({
 		if defined($nodeid);
 	};
 
-	PVE::Cluster::cfs_lock_file('corosync.conf', 10, &$code);
+	PVE::Cluster::cfs_lock_file('corosync.conf', 10, $code);
 	die $@ if $@;
 
 	return undef;
-- 
2.11.0




More information about the pve-devel mailing list