From: Jeffrey Altman Date: Wed, 20 Jul 2011 18:18:25 +0000 (-0400) Subject: Windows: cm_daemonCheckOfflineVol fix X-Git-Tag: upstream/1.8.0_pre1^2~3502 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=0783b8f3821f59004146b4c34a53189ada178d70;p=packages%2Fo%2Fopenafs.git 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 --- 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;