]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
findclient-print-stolen-clients-20040805
authorDerrick Brashear <shadow@dementia.org>
Thu, 5 Aug 2004 15:48:09 +0000 (15:48 +0000)
committerDerrick Brashear <shadow@dementia.org>
Thu, 5 Aug 2004 15:48:09 +0000 (15:48 +0000)
when a client is "stolen" due to a race, print it.

src/viced/host.c

index 1f2651dd622e03ac23ef21d3f72be13b01ffe2d3..2e99984a7fc37b286d1163d19f8f37e3aa979331 100644 (file)
@@ -1545,6 +1545,9 @@ h_FindClient_r(struct rx_connection *tcon)
     oldClient = (struct client *)rx_GetSpecific(tcon, rxcon_client_key);
     if (oldClient && oldClient->tcon == tcon) {
        oldClient->tcon = (struct rx_connection *)0;
+       ViceLog(0, ("FindClient: client %x(%x) already had conn %x (host %x), stolen by client %x(%x)\n", 
+                   oldClient, oldClient->sid, tcon, 
+                   rx_HostOf(rx_PeerOf(tcon)), client, client->sid));
        /* rx_SetSpecific will be done immediately below */
     }
     client->tcon = tcon;