From: Derrick Brashear Date: Tue, 18 Feb 2003 08:03:09 +0000 (+0000) Subject: viced-host-logging-update-20030218 X-Git-Tag: openafs-devel-1_3_50~365 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=6c308978e1195246625babee91b5c49d84e23ffd;p=packages%2Fo%2Fopenafs.git viced-host-logging-update-20030218 FIXES 1308 print info before letting host get gc'd --- diff --git a/src/viced/host.c b/src/viced/host.c index 65d1f4e81..37bd8c48d 100644 --- a/src/viced/host.c +++ b/src/viced/host.c @@ -1033,11 +1033,6 @@ retry: && !afs_uuid_equal(&identP->uuid, &host->interface->uuid) ) ) ) { char uuid1[128], uuid2[128]; - /* The host in the cache is not the host for this connection */ - host->hostFlags |= HOSTDELETED; - h_Unlock_r(host); - if (!held) h_Release_r(host); - if (identP->valid) afsUUID_to_string(identP->uuid, uuid1, 127); if (host->interface) @@ -1047,6 +1042,11 @@ retry: afs_inet_ntoa_r(host->host, hoststr), host->port, identP->valid, host->interface, identP->valid ? uuid1 : "", host->interface ? uuid2 : "")); + + /* The host in the cache is not the host for this connection */ + host->hostFlags |= HOSTDELETED; + h_Unlock_r(host); + if (!held) h_Release_r(host); goto retry; } } else {