1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-10 01:18:15 +03:00
samba-mirror/ctdb/tcp
Martin Schwenke a5be2c245d ctdb-daemon: Store node addresses as ctdb_sock_addr rather than strings
Every time a nodemap is contructed the node IP addresses all need to
be parsed.  This isn't very productive use of CPU.

Instead, parse each string once when the nodes file is loaded.  This
results in much simpler code.

This code also removes the use of ctdb_address.  Duplicating the port
is pointless without an abstraction layer around ctdb_address.  If
CTDB gets an incompatible transport in the future then add an
abstraction layer.

Note that the infiniband code is not updated.  Compilation of the
infiniband code is already broken.  Fixing it will be a separate,
properly tested effort.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
Pair-programmed-with: Amitay Isaacs <amitay@gmail.com>
2015-03-23 12:23:12 +01:00
..
ctdb_tcp.h Added some #ifndefs to stop files being included multiple times. 2011-11-11 14:31:50 +11:00
tcp_connect.c ctdb-daemon: Store node addresses as ctdb_sock_addr rather than strings 2015-03-23 12:23:12 +01:00
tcp_init.c ctdb-daemon: Store node addresses as ctdb_sock_addr rather than strings 2015-03-23 12:23:12 +01:00
tcp_io.c ctdb: Rename CTDB_VERSION to CTDB_PROTOCOL 2014-10-28 05:42:05 +01:00