]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
STABLE12-viced-host-logging-update-20030218
authorDerrick Brashear <shadow@dementia.org>
Tue, 18 Feb 2003 08:14:03 +0000 (08:14 +0000)
committerDerrick Brashear <shadow@dementia.org>
Tue, 18 Feb 2003 08:14:03 +0000 (08:14 +0000)
FIXES 1308

print info before letting host get gc'd

(cherry picked from commit 6c308978e1195246625babee91b5c49d84e23ffd)

src/viced/host.c

index 6cfd55a34c873cae75631b2e362778931e1c63ae..8d3a79781d73433663e12534c977dfda64ce319a 100644 (file)
@@ -1058,11 +1058,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)
@@ -1072,6 +1067,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 {