From d552322816e82b3bc14533ecec9b770a213e7530 Mon Sep 17 00:00:00 2001 From: Anand Avati Date: Tue, 17 Aug 2010 02:53:51 +0000 Subject: protocol/client: fix reconnection to happen on portmapper first Signed-off-by: Anand V. Avati Signed-off-by: Anand V. Avati BUG: 1341 (glusterfs-volgen should behave differently for flag '--internal') URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1341 --- xlators/protocol/client/src/client-handshake.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/xlators/protocol/client/src/client-handshake.c b/xlators/protocol/client/src/client-handshake.c index 743294e9f13..ac597bdbb5d 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); -- cgit