From: Nickolai Zeldovich Date: Wed, 26 Dec 2001 20:21:39 +0000 (+0000) Subject: STABLE12-viced-clear-clientdeleted-when-deleted-clients-are-cleaned-up-20011226 X-Git-Tag: openafs-stable-1_2_3~79 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=3117834dfc8c277a0547350fa6258d3f6b4c5b46;p=packages%2Fo%2Fopenafs.git STABLE12-viced-clear-clientdeleted-when-deleted-clients-are-cleaned-up-20011226 Currently nothing clears the CLIENTDELETED flag in hosts, so once a client has been deleted, h_TossStuff_r() will keep getting called with every host release. This patch clears the CLIENTDELETED flag every time we take care of deleted clients. --- diff --git a/src/viced/host.c b/src/viced/host.c index 31c044d67..6f0c3f0b4 100644 --- a/src/viced/host.c +++ b/src/viced/host.c @@ -748,6 +748,10 @@ h_TossStuff_r(host) FreeCE(client); } else cp = &client->next; } + + /* We've just cleaned out all the deleted clients; clear the flag */ + host->hostFlags &= ~CLIENTDELETED; + if (host->hostFlags & HOSTDELETED) { register struct h_hashChain **hp, *th; register struct rx_connection *rxconn;