STABLE14-forcenewconns-even-with-one-interface-20070226

otherwise we don't discard vlserver connections when a server is "down"


(cherry picked from commit 9d5de311a6c2d96ee5092d58db28fff1b5602be7)
This commit is contained in:
Chaskiel M Grundman 2007-02-26 22:18:28 +00:00 committed by Derrick Brashear
parent 7949736ff5
commit 9bab97f839

View File

@ -339,14 +339,6 @@ ForceNewConnections(struct srvAddr *sap)
if (!sap)
return; /* defensive check */
/* if client is not multihomed, do nothing */
ObtainReadLock(&afs_xinterface);
if (afs_cb_interface.numberOfInterfaces <= 1) {
ReleaseReadLock(&afs_xinterface);
return;
}
ReleaseReadLock(&afs_xinterface);
ObtainWriteLock(&afs_xconn, 413);
for (tc = sap->conns; tc; tc = tc->next)
tc->forceConnectFS = 1;