another small patch: get_attr_bulk

Nickolai Zeldovich kolya at mit.edu
Sat Dec 30 17:49:16 CET 2000


Oops, here's an amended version of the fix that deals better with
disconnected mode and other cases where conn can be 0.

-- kolya

--- fcache.c	2000/11/28 01:48:42	1.307
+++ fcache.c	2000/12/30 16:50:22
@@ -3262,6 +3264,7 @@
     AFSCBs cbs;
     int i;
     int len;
+    u_int32_t host;
 
     arla_warnx (ADEBFCACHE, "get_attr_bulk");
 
@@ -3359,6 +3362,8 @@
 	    break;	
     }
 
+    if (conn != NULL)
+	host = rx_HostOf (rx_PeerOf (conn->connection));
     free_fs_server_context (&context);
 
     if (ret) {
@@ -3394,7 +3399,7 @@
 			       &stats.val[i],
 			       &cbs.val[i],
 			       &sync,
-			       rx_HostOf (rx_PeerOf (conn->connection)),
+			       host,
 			       ce->cred);
 	    e->parent		= parent_entry->fid;
 	    if (!(prefered_entry && i == 0)) {





More information about the Arla-drinkers mailing list