bulkstat-correctly-return-fetchstatus-error-20011011
authorNickolai Zeldovich <kolya@mit.edu>
Thu, 11 Oct 2001 08:41:22 +0000 (08:41 +0000)
committerDerrick Brashear <shadow@dementia.org>
Thu, 11 Oct 2001 08:41:22 +0000 (08:41 +0000)
actually fall back to fetchstatus's error

src/afs/VNOPS/afs_vnop_lookup.c

index d416f76..1d73d09 100644 (file)
@@ -858,11 +858,15 @@ tagain:
        afs_PutVolume(volp, READ_LOCK);
     
     /* If we did the InlineBulk RPC pull out the return code */
-    if (inlinebulk && (&statsp[0])->errorCode) {
-       afs_Analyze(tcp, (&statsp[0])->errorCode, &adp->fid, areqp, 
-                   AFS_STATS_FS_RPCIDX_BULKSTATUS, SHARED_LOCK, 
-                   (struct cell *)0);
-       code = (&statsp[0])->errorCode;
+    if (inlinebulk) {
+       if ((&statsp[0])->errorCode) {
+           afs_Analyze(tcp, (&statsp[0])->errorCode, &adp->fid, areqp, 
+                       AFS_STATS_FS_RPCIDX_BULKSTATUS, SHARED_LOCK, 
+                       (struct cell *)0);
+           code = (&statsp[0])->errorCode;
+       }
+    } else {
+       code = 0;
     }
     osi_FreeLargeSpace(statMemp);
     osi_FreeLargeSpace(cbfMemp);