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})) {