read_file: replace $versions->{$filename} with $cver

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
This commit is contained in:
Dietmar Maurer 2018-01-22 12:12:40 +01:00 committed by Wolfgang Bumiller
parent b8dc43668b
commit 04cba6c8c1

View File

@ -240,11 +240,11 @@ sub read_file {
# file unchanged? # file unchanged?
if (!$ccinfo->{nocache} && if (!$ccinfo->{nocache} &&
$inotify && $versions->{$filename} && $inotify && $cver &&
defined ($ccinfo->{data}) && defined ($ccinfo->{data}) &&
defined ($ccinfo->{version}) && defined ($ccinfo->{version}) &&
($ccinfo->{readonce} || ($ccinfo->{readonce} ||
($ccinfo->{version} == $versions->{$filename}))) { ($ccinfo->{version} == $cver))) {
my $ret; my $ret;
if (!$noclone && ref ($ccinfo->{data})) { if (!$noclone && ref ($ccinfo->{data})) {