summaryrefslogtreecommitdiff
path: root/ctdb/tests/src/ipalloc_read_known_ips.h
Commit message (Collapse)AuthorAgeFilesLines
* ctdb-tests: Factor out reading of known public IP addressesMartin Schwenke2016-12-191-0/+32
One change in behaviour is to actually copy the known IPs per node instead of just assigning the pointer. When this is used by fake_ctdbd the resulting structure will be used to keep state for individual nodes, so data for nodes needs to be independent. Also, drop some asserts in the factored code and do (slightly) better error handling. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>