From 8e6be30d2233e766398bd03dedf2b576131804c3 Mon Sep 17 00:00:00 2001 From: Vijay Bellur Date: Tue, 17 Aug 2010 09:44:20 +0000 Subject: client: Do reconfig upon failure Signed-off-by: Vijay Bellur 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, 4 insertions(+), 2 deletions(-) diff --git a/xlators/protocol/client/src/client-handshake.c b/xlators/protocol/client/src/client-handshake.c index ac597bdbb5d..df58031be4e 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); -- cgit