diff options
author | Amar Tumballi <amar@gluster.com> | 2011-04-13 00:27:02 +0000 |
---|---|---|
committer | Anand Avati <avati@gluster.com> | 2011-05-30 02:08:07 -0700 |
commit | dd55755e0ccc94f721e8ada7e50c976c9cb68c4b (patch) | |
tree | d70fe00bd97489184f0dc6faf09f0b4183aec6c0 /xlators/protocol/client | |
parent | dbd9dfdba36bee1a249c0e29edbfe0ded59e8c2d (diff) |
rpc-clnt: consider the (re-)configured port for only one connect() call
this way, if remote_port is set due to queryport, that can fall back
to default port (or 'option remote-port' value) when it disconnects.
Signed-off-by: Amar Tumballi <amar@gluster.com>
Signed-off-by: Anand Avati <avati@gluster.com>
BUG: 2709 (issues with port (re-)configuration in client protocol)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2709
Diffstat (limited to 'xlators/protocol/client')
-rw-r--r-- | xlators/protocol/client/src/client-handshake.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/xlators/protocol/client/src/client-handshake.c b/xlators/protocol/client/src/client-handshake.c index dc8276c7942..9489e764f4e 100644 --- a/xlators/protocol/client/src/client-handshake.c +++ b/xlators/protocol/client/src/client-handshake.c @@ -958,9 +958,6 @@ 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; @@ -1041,12 +1038,6 @@ client_setvolume (xlator_t *this, struct rpc_clnt *rpc) NULL, 0, NULL); fail: - - if (ret) { - config.remote_port = -1; - rpc_clnt_reconfig (conf->rpc, &config); - } - if (req.dict.dict_val) GF_FREE (req.dict.dict_val); |