ctdb-tests: read_ctdb_public_ip_info() reads all test input
authorMartin Schwenke <martin@meltin.net>
Tue, 21 Jun 2016 05:14:33 +0000 (15:14 +1000)
committerAmitay Isaacs <amitay@samba.org>
Mon, 4 Jul 2016 13:42:24 +0000 (15:42 +0200)
commitcd5ed374bc93dc75e17a5e0c2c30f27c37917d50
tree889279d6de9f5bae265357121977bcaa94ae3c4e
parent067a611c7d469c45d4a7a756945921c8d2deb107
ctdb-tests: read_ctdb_public_ip_info() reads all test input

If there is per-node data then each chunk is read in a separate call
and is cherry-picked out into known_public_ips[] for each node.  This
is confusing.

Instead, a single call now reads all data for multiple nodes and
returns complete arrays of known and available IP addresses.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
ctdb/tests/src/ctdb_takeover_tests.c