ctdbd: Add nodes_file member to struct ctdb_context
authorMartin Schwenke <martin@meltin.net>
Mon, 21 Oct 2013 08:33:10 +0000 (19:33 +1100)
committerMartin Schwenke <martin@meltin.net>
Tue, 22 Oct 2013 04:37:54 +0000 (15:37 +1100)
commit20e705e63bd3b20837cc3ac92fdcf2a9650ccfc8
tree825ecaaac85a470559f917ec868b0a1a3fe7a577
parent2b6dc0d2799f3563b767622b6f9246450aa4036b
ctdbd: Add nodes_file member to struct ctdb_context

This allows ctdb_load_nodes_file() to move to ctdb_server.c and
ctdb_set_nlist() to become static.

Setting ctdb->nodes_file needs to be done early, before the nodes file
is loaded.  It is now set from CTDB_BASE instead ETCDIR, so setting
CTDB_BASE also needs to be done earlier.

Unhack ctdbd_test.c - it no longer needs to define
ctdb_load_nodes_file().

Signed-off-by: Martin Schwenke <martin@meltin.net>
Pair-programmed-with: Amitay Isaacs <amitay@gmail.com>
include/ctdb_client.h
include/ctdb_private.h
server/ctdb_server.c
server/ctdbd.c
tests/src/ctdbd_test.c