summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVijay Bellur <vijay@gluster.com>2010-08-17 09:44:20 +0000
committerAnand V. Avati <avati@dev.gluster.com>2010-08-17 11:18:27 -0700
commit8e6be30d2233e766398bd03dedf2b576131804c3 (patch)
tree629d91333572c0314a44560a295e644fa00cd7fe
parentc8e411f2c46970eceba45534322437f89ed8a543 (diff)
client: Do reconfig upon failure
Signed-off-by: Vijay Bellur <vijay@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
-rw-r--r--xlators/protocol/client/src/client-handshake.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/xlators/protocol/client/src/client-handshake.c b/xlators/protocol/client/src/client-handshake.c
index ac597bdbb..df58031be 100644
--- a/xlators/protocol/client/src/client-handshake.c
+++ b/xlators/protocol/client/src/client-handshake.c
@@ -614,8 +614,10 @@ 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 (ret) {
+ config.remote_port = -1;
+ rpc_clnt_reconfig (conf->rpc, &config);
+ }
if (req.dict.dict_val)
GF_FREE (req.dict.dict_val);