]> git.proxmox.com Git - pve-common.git/blobdiff - src/PVE/INotify.pm
read_file: replace $versions->{$filename} with $cver
[pve-common.git] / src / PVE / INotify.pm
index a383040e6ade2d31770568953772c66b814d0519..1e5687b903ed425fd430864e4725b4f17beed24b 100644 (file)
@@ -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})) {