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

Wolfgang Bumiller w.bumiller at proxmox.com
Thu Aug 3 09:36:42 CEST 2017


applied

On Wed, Aug 02, 2017 at 01:27:30PM +0200, Thomas Lamprecht wrote:
> 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