diff options
author | Anand V. Avati <avati@amp.gluster.com> | 2009-04-20 08:08:26 +0530 |
---|---|---|
committer | Anand V. Avati <avati@amp.gluster.com> | 2009-04-20 08:08:26 +0530 |
commit | 3b8f7ed4c080dc45da02dc751478863007199c26 (patch) | |
tree | b1ed800892d5115c64470335c32d2937301e1c00 /xlators/protocol/client/src/client-protocol.c | |
parent | 42617775a2821dc74300b89dd14a08b068575b2b (diff) |
client_protocol_reconnect - do not send notify of CHILD_DOWN event if errno from transport_connect() was EINPROGRES
This bug was racing between a CHILD_UP from poll thread resulting from the event_register() of the new socket called in fuse thread. CHILD_UP would sometimes overtake the CHILD_DOWN for EINPROGRESS. So replicate would receive CHILD_DOWN as the latest event. This resulted in self-heal not happening etc.
Diffstat (limited to 'xlators/protocol/client/src/client-protocol.c')
-rw-r--r-- | xlators/protocol/client/src/client-protocol.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/protocol/client/src/client-protocol.c b/xlators/protocol/client/src/client-protocol.c index 09ce62730..a715e49e9 100644 --- a/xlators/protocol/client/src/client-protocol.c +++ b/xlators/protocol/client/src/client-protocol.c @@ -6415,7 +6415,7 @@ client_protocol_reconnect (void *trans_ptr) } pthread_mutex_unlock (&conn->lock); - if (ret == -1) { + if (ret == -1 && errno != EINPROGRESS) { default_notify (trans->xl, GF_EVENT_CHILD_DOWN, NULL); } } |