Whamcloud - gitweb
fix typo.
authorshadow <shadow>
Wed, 8 Apr 2009 06:34:29 +0000 (06:34 +0000)
committershadow <shadow>
Wed, 8 Apr 2009 06:34:29 +0000 (06:34 +0000)
Branch b_release_1_8_0

lustre/ldlm/ldlm_lib.c

index f9dd74b..9544e3d 100644 (file)
@@ -390,9 +390,10 @@ int client_connect_import(struct lustre_handle *dlm_handle,
         if (rc)
                 GOTO(out_sem, rc);
 
-        cli->cl_conn_count++;
-        if (cli->cl_conn_count > 1)
+        if (cli->cl_conn_count > 0)
                 GOTO(out_sem, rc = -EALREADY);
+                
+        cli->cl_conn_count++;
         *exp = class_conn2export(dlm_handle);
 
         if (obd->obd_namespace != NULL)