diff options
author | Ronnie Sahlberg <ronniesahlberg@gmail.com> | 2008-10-07 18:12:54 +1100 |
---|---|---|
committer | Ronnie Sahlberg <ronniesahlberg@gmail.com> | 2008-10-07 18:12:54 +1100 |
commit | 1778280d50ea468b07148798e8e88db7bd9a076e (patch) | |
tree | 2630353129bcacdfea2ab1a51e5d09208165b721 /ctdb/tcp | |
parent | bad2949b65eb65f36cf27fa2486f07492c95adea (diff) | |
download | samba-1778280d50ea468b07148798e8e88db7bd9a076e.tar.gz |
When we reload the nodes file
instead of shutting down/restarting the entire tcp layer
just bounce all outgoing connections and reconnect
(This used to be ctdb commit e701a531868149f16561011e65794a4a46ee6596)
Diffstat (limited to 'ctdb/tcp')
-rw-r--r-- | ctdb/tcp/tcp_init.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/ctdb/tcp/tcp_init.c b/ctdb/tcp/tcp_init.c index 5c53caf6cd9..8b33efeb067 100644 --- a/ctdb/tcp/tcp_init.c +++ b/ctdb/tcp/tcp_init.c @@ -31,16 +31,14 @@ */ static int ctdb_tcp_add_node(struct ctdb_node *node) { - struct ctdb_tcp *ctcp = talloc_get_type(node->ctdb->private_data, - struct ctdb_tcp); struct ctdb_tcp_node *tnode; - tnode = talloc_zero(ctcp, struct ctdb_tcp_node); + tnode = talloc_zero(node, struct ctdb_tcp_node); CTDB_NO_MEMORY(node->ctdb, tnode); tnode->fd = -1; node->private_data = tnode; - tnode->out_queue = ctdb_queue_setup(node->ctdb, ctcp, tnode->fd, CTDB_TCP_ALIGNMENT, + tnode->out_queue = ctdb_queue_setup(node->ctdb, node, tnode->fd, CTDB_TCP_ALIGNMENT, ctdb_tcp_tnode_cb, node); return 0; |