5
0
mirror of git://git.proxmox.com/git/pve-common.git synced 2024-12-22 21:33:47 +03:00

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