summaryrefslogtreecommitdiffstats
path: root/xlators
diff options
context:
space:
mode:
authorshishir gowda <shishirng@gluster.com>2010-11-16 03:52:17 +0000
committerAnand V. Avati <avati@dev.gluster.com>2010-11-18 05:55:43 -0800
commit9c80f63d8264718c5855f1f6cca9e5a801392ed3 (patch)
tree8f0828fd4f14984a50e0641179ecb85467d6c1c5 /xlators
parentce9f328aa93892ea79057c41c70836eb49fae8b5 (diff)
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 <shishirng@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> 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
Diffstat (limited to 'xlators')
-rw-r--r--xlators/protocol/client/src/client-handshake.c3
1 files changed, 2 insertions, 1 deletions
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);