]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
windows-callbacks-20070909
authorJeffrey Altman <jaltman@secure-endpoints.com>
Mon, 10 Sep 2007 05:53:48 +0000 (05:53 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Mon, 10 Sep 2007 05:53:48 +0000 (05:53 +0000)
when suspending only clear callbacks for servers that are in an up state.
if they were in a down state, then we couldn't send the clear callbacks
message but more importantly, we need to leave the callback info current
because the callbacks should not be cleared until the server is once again
reachable.

src/WINNT/afsd/cm_scache.c

index ef814cdd691092cc16fa47a6e978846f9c751336..0f725d4ea62ea6a6f428c810636bb3b81fb171e7 100644 (file)
@@ -478,7 +478,8 @@ cm_SuspendSCache(void)
     lock_ObtainWrite(&cm_scacheLock);
     for ( scp = cm_data.allSCachesp; scp;
           scp = scp->allNextp ) {
-        if (scp->cbServerp) {
+        if (scp->cbServerp && 
+            !(scp->cbServerp->flags & CM_SERVERFLAG_DOWN)) {
             cm_PutServer(scp->cbServerp);
             scp->cbServerp = NULL;
         }