From: Dietmar Maurer Date: Mon, 22 Jan 2018 11:12:40 +0000 (+0100) Subject: read_file: replace $versions->{$filename} with $cver X-Git-Url: https://git.proxmox.com/?p=pve-common.git;a=commitdiff_plain;h=04cba6c8c14f7957e4b7918c0eff97e98249dba0;hp=b8dc43668bb64a28dd00b14022302ec8d932deff read_file: replace $versions->{$filename} with $cver Signed-off-by: Dietmar Maurer --- 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})) {