diff options
author | Andrew Tridgell <tridge@samba.org> | 2007-04-17 19:41:29 +1000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2007-04-17 19:41:29 +1000 |
commit | fb84d56b1b43adff854eb8ed551885e3dd10ae23 (patch) | |
tree | e519c3fb7bec8ee7fb0e57a88f14b26bbde039ba | |
parent | 68cf92311676893611461383f8fbacfd43dbb6cf (diff) | |
download | samba-fb84d56b1b43adff854eb8ed551885e3dd10ae23.tar.gz samba-fb84d56b1b43adff854eb8ed551885e3dd10ae23.tar.xz samba-fb84d56b1b43adff854eb8ed551885e3dd10ae23.zip |
make sure we notify ctdb when a node dies
(This used to be ctdb commit 598feb4fb9badcf329837965ad39e0f0dfe28498)
-rw-r--r-- | ctdb/tcp/tcp_connect.c | 4 |
1 files changed, 4 insertions, 0 deletions
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); |