From: Derrick Brashear Date: Fri, 17 Jan 2003 07:39:53 +0000 (+0000) Subject: STABLE12-viced-getclient-assert-logging-20030117 X-Git-Tag: openafs-stable-1_2_9~73 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=b711919dffe87eb4909c6f34d26a32abbf510f4b;p=packages%2Fo%2Fopenafs.git STABLE12-viced-getclient-assert-logging-20030117 log some more info before asserting (cherry picked from commit 2e3678c8829761506b9179d3660448c9ae21942b) --- diff --git a/src/viced/host.c b/src/viced/host.c index 97ccf870f..6cfd55a34 100644 --- a/src/viced/host.c +++ b/src/viced/host.c @@ -1492,8 +1492,15 @@ int GetClient(tcon, cp) H_LOCK *cp = client = (struct client *) rx_GetSpecific(tcon, rxcon_client_key); - /* XXXX debug */ - assert(client && client->tcon && rxr_CidOf(client->tcon) == client->sid); + if (!(client && client->tcon && rxr_CidOf(client->tcon) == client->sid)) { + if (!client) + ViceLog(0, ("GetClient: no client in conn %x\n", tcon)); + else + ViceLog(0, ("GetClient: tcon %x tcon sid %d client sid %d\n", + client->tcon, client->tcon ? rxr_CidOf(client->tcon) + : -1, client->sid)); + assert(0); + } if (client && client->LastCall > client->expTime && client->expTime) { char hoststr[16];