[pve-devel] [PATCH ha-manager v4 1/3] avoid out of sync command execution in LRM

Dietmar Maurer dietmar at proxmox.com
Wed Feb 24 08:19:43 CET 2016


> diff --git a/src/PVE/HA/LRM.pm b/src/PVE/HA/LRM.pm
> index f53f26d..f0e7977 100644
> --- a/src/PVE/HA/LRM.pm
> +++ b/src/PVE/HA/LRM.pm
> @@ -31,6 +31,8 @@ sub new {
>  	workers => {},
>  	results => {},
>  	restart_tries => {},
> +	# store finished jobs UID so we don't exec the same twice
> +	processed_uids => {},

I would prefer to use the 'results' hash instead of processed_uids - seems
redundant to me?




More information about the pve-devel mailing list