From 0783b8f3821f59004146b4c34a53189ada178d70 Mon Sep 17 00:00:00 2001 From: Jeffrey Altman Date: Wed, 20 Jul 2011 14:18:25 -0400 Subject: [PATCH] Windows: cm_daemonCheckOfflineVol fix When computing whether or not to perform an offline volume check it is critical that the 'lastBusyVolCheck' variable be assigned the current time instead of 'lastVolCheck'. By setting the wrong variable a new offline volume check is performed every 10 seconds which is undesireable. Change-Id: I509cde64a8b51ce1846f37047a574409ff248978 Reviewed-on: http://gerrit.openafs.org/5054 Reviewed-by: Derrick Brashear Reviewed-by: Jeffrey Altman Tested-by: Jeffrey Altman --- src/WINNT/afsd/cm_daemon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/WINNT/afsd/cm_daemon.c b/src/WINNT/afsd/cm_daemon.c index 97cddd678..59f1ae4af 100644 --- a/src/WINNT/afsd/cm_daemon.c +++ b/src/WINNT/afsd/cm_daemon.c @@ -586,7 +586,7 @@ void cm_Daemon(long parm) if ((bAddrChangeCheck || now > lastBusyVolCheck + cm_daemonCheckOfflineVolInterval) && daemon_ShutdownFlag == 0 && powerStateSuspended == 0) { - lastVolCheck = now; + lastBusyVolCheck = now; cm_CheckOfflineVolumes(); if (daemon_ShutdownFlag == 1) break; -- 2.39.5