mirror of
https://git.openafs.org/openafs.git
synced 2025-01-19 15:30:14 +00:00
viced-log-refd-client-while-deleting-20030215
if we gc a client with a positive refCount, log it. should probably log more data.
This commit is contained in:
parent
214c2e7b19
commit
6a1182d4bf
@ -701,6 +701,12 @@ int h_TossStuff_r(register struct host *host)
|
|||||||
/* ASSUMPTION: rxi_FreeConnection() does not yield */
|
/* ASSUMPTION: rxi_FreeConnection() does not yield */
|
||||||
for (cp = &host->FirstClient; (client = *cp); ) {
|
for (cp = &host->FirstClient; (client = *cp); ) {
|
||||||
if ((host->hostFlags & HOSTDELETED) || client->deleted) {
|
if ((host->hostFlags & HOSTDELETED) || client->deleted) {
|
||||||
|
if (client->refCount) {
|
||||||
|
char hoststr[16];
|
||||||
|
ViceLog(0, ("Warning: Host %s:%d client %x refcount %d while deleting.\n",
|
||||||
|
afs_inet_ntoa_r(host->host, hoststr), host->port,
|
||||||
|
client, client->refCount));
|
||||||
|
}
|
||||||
if ((client->ViceId != ANONYMOUSID) && client->CPS.prlist_val) {
|
if ((client->ViceId != ANONYMOUSID) && client->CPS.prlist_val) {
|
||||||
free(client->CPS.prlist_val);
|
free(client->CPS.prlist_val);
|
||||||
client->CPS.prlist_val = NULL;
|
client->CPS.prlist_val = NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user