down-before-busy-20040723
authorJeffrey Altman <jaltman@mit.edu>
Fri, 23 Jul 2004 23:58:24 +0000 (23:58 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Fri, 23 Jul 2004 23:58:24 +0000 (23:58 +0000)
slight correction to previous patch.
check allDown before checking allBusy

src/WINNT/afsd/cm_conn.c

index ec0876a..b1ee331 100644 (file)
@@ -408,10 +408,10 @@ long cm_ConnByMServers(cm_serverRef_t *serversp, cm_user_t *usersp,
 
        lock_ReleaseWrite(&cm_serverLock);
        if (firstError == 0) {
-               if (allBusy) 
-                       firstError = CM_ERROR_ALLBUSY;
-               else if (allDown) 
+               if (allDown) 
                        firstError = CM_ERROR_ALLOFFLINE;
+               else if (allBusy) 
+                       firstError = CM_ERROR_ALLBUSY;
                else if (serversp == NULL) 
                        /* Only return CM_ERROR_NOSUCHVOLUME if there are no
                         * servers for this volume