X-Git-Url: https://git.proxmox.com/?p=pve-common.git;a=blobdiff_plain;f=src%2FPVE%2FINotify.pm;h=1e5687b903ed425fd430864e4725b4f17beed24b;hp=a383040e6ade2d31770568953772c66b814d0519;hb=04cba6c8c14f7957e4b7918c0eff97e98249dba0;hpb=3dabe28a23005a6e93152fdc9d81acd59f59ce80 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})) {