From fb84d56b1b43adff854eb8ed551885e3dd10ae23 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 17 Apr 2007 19:41:29 +1000 Subject: make sure we notify ctdb when a node dies (This used to be ctdb commit 598feb4fb9badcf329837965ad39e0f0dfe28498) --- ctdb/tcp/tcp_connect.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ctdb/tcp/tcp_connect.c b/ctdb/tcp/tcp_connect.c index a1f2d331cf..4d9d8e8386 100644 --- a/ctdb/tcp/tcp_connect.c +++ b/ctdb/tcp/tcp_connect.c @@ -43,6 +43,10 @@ void ctdb_tcp_tnode_cb(uint8_t *data, size_t cnt, void *private_data) struct ctdb_tcp_node *tnode = talloc_get_type( node->private_data, struct ctdb_tcp_node); + if (data == NULL) { + node->ctdb->upcalls->node_dead(node); + } + /* start a new connect cycle to try to re-establish the link */ close(tnode->fd); -- cgit