From 6a1182d4bf186db3305d14f97f5561dfb822c104 Mon Sep 17 00:00:00 2001 From: Derrick Brashear Date: Sun, 16 Feb 2003 00:22:00 +0000 Subject: [PATCH] viced-log-refd-client-while-deleting-20030215 if we gc a client with a positive refCount, log it. should probably log more data. --- src/viced/host.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/viced/host.c b/src/viced/host.c index 89cde4fa7..65d1f4e81 100644 --- a/src/viced/host.c +++ b/src/viced/host.c @@ -701,6 +701,12 @@ int h_TossStuff_r(register struct host *host) /* ASSUMPTION: rxi_FreeConnection() does not yield */ for (cp = &host->FirstClient; (client = *cp); ) { 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) { free(client->CPS.prlist_val); client->CPS.prlist_val = NULL; -- 2.39.5