ctdb-ipalloc: Clean up reloading of remote public IPs
authorMartin Schwenke <martin@meltin.net>
Mon, 20 Jun 2016 11:27:40 +0000 (21:27 +1000)
committerAmitay Isaacs <amitay@samba.org>
Mon, 4 Jul 2016 13:42:25 +0000 (15:42 +0200)
commit303ef82a27771ae1eda01e03d420c165bc4aaa88
treea630e3aa6903b60b1786add932f3546e9a7268d3
parentc09cf571b7a9a4584be079d7989575f21b1fb915
ctdb-ipalloc: Clean up reloading of remote public IPs

Factor out new function ctdb_fetch_remote_public_ips() to fetch known
or available public IP addresses, according to flags.

This also drops the hack where the array from a
ctdb_public_ip_list_old was assigned to a pointer in a
ctdb_public_ip_list.

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