Rev 138: make sure we notify ctdb when a node dies in http://samba.org/~tridge/ctdb

tridge at samba.org tridge at samba.org
Tue Apr 17 09:41:30 GMT 2007


------------------------------------------------------------
revno: 138
revision-id: tridge at samba.org-20070417094129-679a037628a088fc
parent: tridge at samba.org-20070417092749-c3fed1e34bc970c8
committer: Andrew Tridgell <tridge at samba.org>
branch nick: tridge
timestamp: Tue 2007-04-17 19:41:29 +1000
message:
  make sure we notify ctdb when a node dies
modified:
  tcp/tcp_connect.c              tcp_connect.c-20061128004937-x70q1cu5xzg5g2tm-1
=== modified file 'tcp/tcp_connect.c'
--- a/tcp/tcp_connect.c	2007-04-13 10:38:24 +0000
+++ b/tcp/tcp_connect.c	2007-04-17 09:41:29 +0000
@@ -43,6 +43,10 @@
 	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);



More information about the samba-cvs mailing list