From: Derrick Brashear Date: Fri, 17 Jan 2003 07:39:28 +0000 (+0000) Subject: viced-getclient-assert-logging-20030117 X-Git-Tag: openafs-devel-1_3_50~416 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=2e3678c8829761506b9179d3660448c9ae21942b;p=packages%2Fo%2Fopenafs.git viced-getclient-assert-logging-20030117 log some more info before asserting --- diff --git a/src/viced/host.c b/src/viced/host.c index 2c613f07e..c70deac38 100644 --- a/src/viced/host.c +++ b/src/viced/host.c @@ -1426,8 +1426,15 @@ int GetClient(struct rx_connection * tcon, struct client **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];