to make it easier/less disruptive to add nodes to a running cluster
authorRonnie Sahlberg <sahlberg@samba.org>
Tue, 19 Feb 2008 03:44:48 +0000 (14:44 +1100)
committerRonnie Sahlberg <sahlberg@samba.org>
Tue, 19 Feb 2008 03:44:48 +0000 (14:44 +1100)
commit4bc20ac73e9fa94ffd43cccb6eeb438eeff9963c
treec30e8ae94b512c20be0e678d20a7c09177b2f566
parent644a7248548260d37df432979b129797750907f4
to make it easier/less disruptive to add nodes to a running cluster

add a new control that causes the node to drop the current nodes list
and reread it from the nodes file.
During this operation, the node will also drop the tcp layer and restart it.

When we drop the tcp layer, by talloc_free()ing the ctcp structure
add a destructor to ctcp so that we also can clean up and remove the references in the ctdb structure to the transport layer

add two new commands for the ctdb tool.
one to list all nodes in the nodesfile and the second a command to trigger a node to drop the transport and reinitialize it with the nde nodes file
client/ctdb_client.c
include/ctdb.h
include/ctdb_private.h
server/ctdb_control.c
server/ctdb_recover.c
server/ctdb_server.c
server/ctdbd.c
tcp/ctdb_tcp.h
tcp/tcp_init.c
tools/ctdb.c