From 412a951dc6b575e89e497a8588426257018e284e Mon Sep 17 00:00:00 2001 From: Amar Tumballi Date: Wed, 27 Jul 2011 14:40:10 +0530 Subject: 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 Reviewed-by: Anand Avati --- rpc/rpc-lib/src/rpc-clnt.c | 1 + 1 file changed, 1 insertion(+) 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; } -- cgit