STABLE12-viced-improved-host-logging-20030117

to deal with condition reported by lha@stacken.kth.se


(cherry picked from commit 12eb511d45)
This commit is contained in:
Derrick Brashear 2003-01-17 06:24:45 +00:00
parent a87ab9010e
commit e01fad61e6

View File

@ -1055,14 +1055,24 @@ retry:
&& ( ( !identP->valid && host->interface ) && ( ( !identP->valid && host->interface )
|| ( identP->valid && !host->interface ) || ( identP->valid && !host->interface )
|| ( identP->valid || ( identP->valid
&& !afs_uuid_equal(&identP->uuid, &host->interface->uuid) ) ) ) { && !afs_uuid_equal(&identP->uuid, &host->interface->uuid) ) ) )
/* The host in the cache is not the host for this connection */ {
host->hostFlags |= HOSTDELETED; char uuid1[128], uuid2[128];
h_Unlock_r(host); /* The host in the cache is not the host for this connection */
if (!held) h_Release_r(host); host->hostFlags |= HOSTDELETED;
ViceLog(0, ("CB: new identity for host %s:%d, deleting\n", h_Unlock_r(host);
afs_inet_ntoa_r(host->host, hoststr), host->port)); if (!held) h_Release_r(host);
goto retry;
if (identP->valid)
afsUUID_to_string(identP->uuid, uuid1, 127);
if (host->interface)
afsUUID_to_string(host->interface->uuid, uuid2, 127);
ViceLog(0,
("CB: new identity for host %s:%d, deleting(%x %x %s %s)\n",
afs_inet_ntoa_r(host->host, hoststr), host->port,
identP->valid, host->interface, identP->valid ? uuid1 :
"", host->interface ? uuid2 : ""));
goto retry;
} }
} else { } else {
host = h_Alloc_r(tcon); host = h_Alloc_r(tcon);