From 387a14670d5e803b44f30b35209e59e4fa6cc998 Mon Sep 17 00:00:00 2001 From: shadow Date: Wed, 8 Apr 2009 06:34:29 +0000 Subject: [PATCH] fix typo. Branch b_release_1_8_0 --- lustre/ldlm/ldlm_lib.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lustre/ldlm/ldlm_lib.c b/lustre/ldlm/ldlm_lib.c index f9dd74b..9544e3d 100644 --- a/lustre/ldlm/ldlm_lib.c +++ b/lustre/ldlm/ldlm_lib.c @@ -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) -- 1.8.3.1