diff options
author | Amar Tumballi <amar@gluster.com> | 2011-07-27 14:36:56 +0530 |
---|---|---|
committer | Anand Avati <avati@gluster.com> | 2011-07-27 02:14:37 -0700 |
commit | 58ccea44011065f57968114c9a8e89307ec05276 (patch) | |
tree | a0ddb00994b0371f05edf65482c2794612b8aad0 /rpc | |
parent | baf66413aa1d7ea65d092f2301d2ec749b6a217e (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/112
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Anand Avati <avati@gluster.com>
Diffstat (limited to 'rpc')
-rw-r--r-- | rpc/rpc-lib/src/rpc-clnt.c | 1 |
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 67f7bcfa1f5..819951c7e0d 100644 --- a/rpc/rpc-lib/src/rpc-clnt.c +++ b/rpc/rpc-lib/src/rpc-clnt.c @@ -927,6 +927,7 @@ rpc_clnt_connection_init (struct rpc_clnt *clnt, glusterfs_ctx_t *ctx, if (!conn->trans) { gf_log (name, GF_LOG_WARNING, "loading of new rpc-transport" " failed"); + ret = -1; goto out; } |