summaryrefslogtreecommitdiffstats
path: root/xlators/protocol/client/src/client.c
diff options
context:
space:
mode:
authorAnand Avati <avati@gluster.com>2010-10-12 01:21:51 +0000
committerVijay Bellur <vijay@dev.gluster.com>2010-10-12 00:11:14 -0700
commitc3b6df1a8e27c66a5c17cc1d6a92fdc37354ae6f (patch)
treee466714af844ea5b9f3ff64afa852d48ccacfe06 /xlators/protocol/client/src/client.c
parent91580140b3df01838c5c5a6dac301efb87c4bd93 (diff)
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 <avati@blackhole.gluster.com> Signed-off-by: Vijay Bellur <vijay@dev.gluster.com> BUG: 1756 (NFS must revalidate inode on first ESTALE on lookup) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1756
Diffstat (limited to 'xlators/protocol/client/src/client.c')
-rw-r--r--xlators/protocol/client/src/client.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/xlators/protocol/client/src/client.c b/xlators/protocol/client/src/client.c
index e2513f891..53c356cde 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: