ctdb-daemon: Use ctdb_read_nodes() in ctdbd
commit181cc097ef2d36d5aaeffa3636ea4f198306bb78
authorMartin Schwenke <mschwenke@ddn.com>
Fri, 5 Jul 2024 08:07:36 +0000 (5 18:07 +1000)
committerMartin Schwenke <martins@samba.org>
Tue, 23 Jul 2024 11:37:34 +0000 (23 11:37 +0000)
treea7b5441f5b4f91060decbb07fd167cad728f2a1e
parent5d2a864c0ba3e7a67a73548e2d13ea5919aa5fc7
ctdb-daemon: Use ctdb_read_nodes() in ctdbd

ctdb_control_getnodesfile() calls ctdb_read_nodes(), which returns a
struct ctdb_node_map rather than the old version, so update associated
marshalling.  While here modernise a debug message and wrap the
function arguments.

For ctdb_load_nodes_file() to use ctdb_read_nodes(), tweak
convert_node_map_to_list() to also use the modern node map structure.

Remove unused copy of ctdb_read_nodes_file().

Signed-off-by: Martin Schwenke <mschwenke@ddn.com>
Reviewed-by: Anoop C S <anoopcs@samba.org>
ctdb/common/common.h
ctdb/common/ctdb_util.c
ctdb/server/ctdb_daemon.c
ctdb/server/ctdb_server.c
ctdb/wscript