]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
STABLE14-windows-new-server-ping-20060213
authorJeffrey Altman <jaltman@secure-endpoints.com>
Mon, 13 Feb 2006 16:29:43 +0000 (16:29 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Mon, 13 Feb 2006 16:29:43 +0000 (16:29 +0000)
when adding a new server, mark it down to start.
this will allow the Ping to use the short timeout when checking the real
status.

(cherry picked from commit 8a6bfc54e5ff81bea0b78b45986f5115b2978adc)

src/WINNT/afsd/cm_server.c

index 309b57717fc666ff514ae6a5740e4dfadefa34e0..055f0b749c2f109583f7cbe4e8d127d1fe640d78 100644 (file)
@@ -235,6 +235,7 @@ cm_server_t *cm_NewServer(struct sockaddr_in *socketp, int type, cm_cell_t *cell
     tsp->refCount = 1;
     lock_InitializeMutex(&tsp->mx, "cm_server_t mutex");
     tsp->addr = *socketp;
+    tsp->flags = CM_SERVERFLAG_DOWN;   /* assume down; ping will mark up if available */
 
     cm_SetServerPrefs(tsp);