diff options
author | Amar Tumballi <amar@gluster.com> | 2009-08-20 18:51:10 +0000 |
---|---|---|
committer | Anand V. Avati <avati@dev.gluster.com> | 2009-08-20 19:05:16 -0700 |
commit | cb539b0b65d1868410a10266edb042bdaf867301 (patch) | |
tree | 4635c4b850d86e2d3995b3402ac354382f346bea /xlators/protocol/client/src/client-protocol.h | |
parent | 45883c74f2c3b11b77fa94be714341ccf0e21198 (diff) |
protocol/client: 'connecting' event is properly notified.
when there are no servers available to client, and transport init is
not successful, send 'connecting' event once to parent so it doesn't
hand in there.
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
BUG: 224 (Client hangs if none of the servers are up)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=224
Diffstat (limited to 'xlators/protocol/client/src/client-protocol.h')
-rw-r--r-- | xlators/protocol/client/src/client-protocol.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/xlators/protocol/client/src/client-protocol.h b/xlators/protocol/client/src/client-protocol.h index aef58ae30b0..7249853a65a 100644 --- a/xlators/protocol/client/src/client-protocol.h +++ b/xlators/protocol/client/src/client-protocol.h @@ -82,6 +82,7 @@ struct _client_conf { struct timeval last_sent; struct timeval last_received; pthread_mutex_t mutex; + int connecting; }; typedef struct _client_conf client_conf_t; |