]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
windows-new-server-ping-20060213
authorJeffrey Altman <jaltman@secure-endpoints.com>
Mon, 13 Feb 2006 16:28:59 +0000 (16:28 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Mon, 13 Feb 2006 16:28:59 +0000 (16:28 +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.

src/WINNT/afsd/cm_server.c

index efed40930c27785603799922cb744883e18b2322..5a2dd83c83f60ee6cb3d9e77f0d145ad44c5af82 100644 (file)
@@ -244,6 +244,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);