From 04cba6c8c14f7957e4b7918c0eff97e98249dba0 Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Mon, 22 Jan 2018 12:12:40 +0100 Subject: [PATCH] read_file: replace $versions->{$filename} with $cver Signed-off-by: Dietmar Maurer --- 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.39.2