DEVEL15-windows-fix-cb-expiration-20071222

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)
This commit is contained in:
Jeffrey Altman 2007-12-23 03:27:29 +00:00
parent 861a8762b4
commit 10e8a05fb2
2 changed files with 2 additions and 2 deletions

View 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) {

View 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 ) {