]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
make sure we notify ctdb when a node dies
authorAndrew Tridgell <tridge@samba.org>
Tue, 17 Apr 2007 09:41:29 +0000 (19:41 +1000)
committerAndrew Tridgell <tridge@samba.org>
Tue, 17 Apr 2007 09:41:29 +0000 (19:41 +1000)
(This used to be ctdb commit 598feb4fb9badcf329837965ad39e0f0dfe28498)

ctdb/tcp/tcp_connect.c

index a1f2d331cff09f5f6df8c288662ff359952d2bc2..4d9d8e83868c05b401fe64bde88937d7208f045b 100644 (file)
@@ -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);