From 9c80f63d8264718c5855f1f6cca9e5a801392ed3 Mon Sep 17 00:00:00 2001 From: shishir gowda Date: Tue, 16 Nov 2010 03:52:17 +0000 Subject: protocol/client: skip notify if query portmap is successful Mount point does not hang, though stale handle error on / till the downed brick is online again Signed-off-by: shishir gowda Signed-off-by: Anand V. Avati BUG: 1905 (Mounting volume is not working when any one server is down) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1905 --- xlators/protocol/client/src/client-handshake.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'xlators/protocol/client') diff --git a/xlators/protocol/client/src/client-handshake.c b/xlators/protocol/client/src/client-handshake.c index 26aabfeec70..c56294c83be 100644 --- a/xlators/protocol/client/src/client-handshake.c +++ b/xlators/protocol/client/src/client-handshake.c @@ -1070,13 +1070,14 @@ client_query_portmap_cbk (struct rpc_req *req, struct iovec *iov, int count, voi config.remote_port = rsp.port; rpc_clnt_reconfig (conf->rpc, &config); + conf->skip_notify = 1; out: if (frame) STACK_DESTROY (frame->root); if (conf) { - conf->skip_notify = 1; + rpc_transport_disconnect (conf->rpc->conn.trans); rpc_clnt_reconnect (conf->rpc->conn.trans); -- cgit