summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmar Tumballi <amar@gluster.com>2011-07-27 14:40:10 +0530
committerAnand Avati <avati@gluster.com>2011-07-28 04:14:45 -0700
commit412a951dc6b575e89e497a8588426257018e284e (patch)
tree7b2d0c00b40bd1a11b3949e62ae4061eaa2e34ca
parent516c678cc056c08ebfc16ee945d4534d68bc319e (diff)
rpc: in client connection init(), return the proper error code
without the proper error code, rpc won't know if transport is successfully loaded or not. Change-Id: Idc3ad56d2f47cf1e81ba39f90a7f7b47305d7d9a BUG: 3260 Reviewed-on: http://review.gluster.com/114 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Anand Avati <avati@gluster.com>
-rw-r--r--rpc/rpc-lib/src/rpc-clnt.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/rpc/rpc-lib/src/rpc-clnt.c b/rpc/rpc-lib/src/rpc-clnt.c
index d49667321..9f34fcf58 100644
--- a/rpc/rpc-lib/src/rpc-clnt.c
+++ b/rpc/rpc-lib/src/rpc-clnt.c
@@ -940,6 +940,7 @@ rpc_clnt_connection_init (struct rpc_clnt *clnt, glusterfs_ctx_t *ctx,
if (!conn->trans) {
gf_log ("rpc-clnt", GF_LOG_DEBUG, "loading of new rpc-transport"
" failed");
+ ret = -1;
goto out;
}