[pve-devel] applied: [PATCH pve-common 1/2] read_file: replace $versions->{$filename} with $cver

Wolfgang Bumiller w.bumiller at proxmox.com
Mon Jan 22 14:55:56 CET 2018


applied both patches

On Mon, Jan 22, 2018 at 12:12:40PM +0100, Dietmar Maurer wrote:
> Signed-off-by: Dietmar Maurer <dietmar at proxmox.com>
> ---
>  src/PVE/INotify.pm | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/src/PVE/INotify.pm b/src/PVE/INotify.pm
> index a383040..1e5687b 100644
> --- a/src/PVE/INotify.pm
> +++ b/src/PVE/INotify.pm
> @@ -240,11 +240,11 @@ sub read_file {
>  
>      # file unchanged?
>      if (!$ccinfo->{nocache} &&
> -	$inotify && $versions->{$filename} &&
> +	$inotify && $cver &&
>  	defined ($ccinfo->{data}) &&
>  	defined ($ccinfo->{version}) &&
>  	($ccinfo->{readonce} ||
> -	 ($ccinfo->{version} == $versions->{$filename}))) {
> +	 ($ccinfo->{version} == $cver))) {
>  
>  	my $ret;
>  	if (!$noclone && ref ($ccinfo->{data})) {
> -- 
> 2.11.0




More information about the pve-devel mailing list