From c3b6df1a8e27c66a5c17cc1d6a92fdc37354ae6f Mon Sep 17 00:00:00 2001 From: Anand Avati Date: Tue, 12 Oct 2010 01:21:51 +0000 Subject: protocol/client: prevent propagation of CHILD_DOWN after pmap query pmap query results in a new port to which the rpc client reconnects. This involves disconnection of current connection to pmap which was propagating CHILD_DOWN upwards prematurely Signed-off-by: Anand V. Avati Signed-off-by: Vijay Bellur BUG: 1756 (NFS must revalidate inode on first ESTALE on lookup) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1756 --- xlators/protocol/client/src/client.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'xlators/protocol/client/src/client.c') diff --git a/xlators/protocol/client/src/client.c b/xlators/protocol/client/src/client.c index e2513f89145..53c356cdec6 100644 --- a/xlators/protocol/client/src/client.c +++ b/xlators/protocol/client/src/client.c @@ -1585,7 +1585,10 @@ client_rpc_notify (struct rpc_clnt *rpc, void *mydata, rpc_clnt_event_t event, gf_log (this->name, GF_LOG_TRACE, "got RPC_CLNT_DISCONNECT"); - default_notify (this, GF_EVENT_CHILD_DOWN, NULL); + if (!conf->skip_notify) + default_notify (this, GF_EVENT_CHILD_DOWN, NULL); + conf->skip_notify = 0; + break; default: -- cgit