[pve-devel] [PATCH pve-common 1/2] read_file: replace $versions->{$filename} with $cver

Dietmar Maurer dietmar at proxmox.com
Mon Jan 22 12:12:40 CET 2018


Signed-off-by: Dietmar Maurer <dietmar at proxmox.com>
---
 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.11.0





More information about the pve-devel mailing list