summaryrefslogtreecommitdiffstats
path: root/xlators/protocol/client/src/client-protocol.h
diff options
context:
space:
mode:
authorAmar Tumballi <amar@gluster.com>2009-08-20 18:36:04 +0000
committerAnand V. Avati <avati@dev.gluster.com>2009-08-20 19:05:24 -0700
commit6e90ebabd5f32233a1c01ee6edd2a2b88bcd38fd (patch)
tree511a9699b5c5c082ce53274a77d883699102efb8 /xlators/protocol/client/src/client-protocol.h
parent0187de2869f03614f99e61adf9c88f3e0bfb307d (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.h1
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 86107f9bc..210e6d478 100644
--- a/xlators/protocol/client/src/client-protocol.h
+++ b/xlators/protocol/client/src/client-protocol.h
@@ -92,6 +92,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;