DEVEL15-windows-fix-cb-expiration-20071222
authorJeffrey Altman <jaltman@secure-endpoints.com>
Sun, 23 Dec 2007 03:27:29 +0000 (03:27 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Sun, 23 Dec 2007 03:27:29 +0000 (03:27 +0000)
LICENSE MIT

corrects cb expiration that was broken by the osi_Time() -> time() change
in delta windows-readonly-volume-callbacks-20071109

(cherry picked from commit 89203eb7065d7bd4e2a40f2afd5fab979ddf1008)

src/WINNT/afsd/cm_callback.c
src/WINNT/afsd/cm_scache.c

index a9689ff..0e8cfb3 100644 (file)
@@ -1842,7 +1842,7 @@ void cm_CheckCBExpiration(void)
         
     osi_Log0(afsd_logp, "CheckCBExpiration");
 
-    now = osi_Time();
+    now = time(NULL);
     lock_ObtainWrite(&cm_scacheLock);
     for (i=0; i<cm_data.scacheHashTableSize; i++) {
         for (scp = cm_data.scacheHashTablep[i]; scp; scp=scp->nextp) {
index 6f24d63..fe804f2 100644 (file)
@@ -494,7 +494,7 @@ cm_SuspendSCache(void)
      * without network, the stat cache item will still be
      * considered valid.
      */
-    now = osi_Time();
+    now = time(NULL);
 
     lock_ObtainWrite(&cm_scacheLock);
     for ( scp = cm_data.allSCachesp; scp; scp = scp->allNextp ) {