summaryrefslogtreecommitdiffstats
path: root/xlators/protocol/client
diff options
context:
space:
mode:
authorAnand Avati <avati@gluster.com>2010-08-17 02:53:51 +0000
committerAnand V. Avati <avati@dev.gluster.com>2010-08-17 02:23:51 -0700
commitd552322816e82b3bc14533ecec9b770a213e7530 (patch)
tree4e4342170612276b4c7dc6598f5adec0d3af142e /xlators/protocol/client
parent9eccb80f42328cff1e652b12e01a3b02898f5edf (diff)
protocol/client: fix reconnection to happen on portmapper first
Signed-off-by: Anand V. Avati <avati@blackhole.gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 1341 (glusterfs-volgen should behave differently for flag '--internal') URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1341
Diffstat (limited to 'xlators/protocol/client')
-rw-r--r--xlators/protocol/client/src/client-handshake.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/xlators/protocol/client/src/client-handshake.c b/xlators/protocol/client/src/client-handshake.c
index 743294e9f..ac597bdbb 100644
--- a/xlators/protocol/client/src/client-handshake.c
+++ b/xlators/protocol/client/src/client-handshake.c
@@ -532,6 +532,9 @@ client_setvolume (xlator_t *this, struct rpc_clnt *rpc)
clnt_conf_t *conf = NULL;
dict_t *options = NULL;
+ struct rpc_clnt_config config = {0, };
+
+
options = this->options;
conf = this->private;
@@ -611,6 +614,9 @@ client_setvolume (xlator_t *this, struct rpc_clnt *rpc)
NULL, xdr_from_setvolume_req);
fail:
+ config.remote_port = -1;
+ rpc_clnt_reconfig (conf->rpc, &config);
+
if (req.dict.dict_val)
GF_FREE (req.dict.dict_val);