From: Andrew Tridgell Date: Tue, 17 Apr 2007 09:41:29 +0000 (+1000) Subject: make sure we notify ctdb when a node dies X-Git-Tag: tevent-0.9.20~348^2~2893 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fb84d56b1b43adff854eb8ed551885e3dd10ae23;p=thirdparty%2Fsamba.git make sure we notify ctdb when a node dies (This used to be ctdb commit 598feb4fb9badcf329837965ad39e0f0dfe28498) --- diff --git a/ctdb/tcp/tcp_connect.c b/ctdb/tcp/tcp_connect.c index a1f2d331cff..4d9d8e83868 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);