ctdb-ipalloc: Move create_merged_ip_list() into ipalloc
authorMartin Schwenke <martin@meltin.net>
Mon, 23 May 2016 10:23:18 +0000 (20:23 +1000)
committerAmitay Isaacs <amitay@samba.org>
Mon, 4 Jul 2016 13:42:25 +0000 (15:42 +0200)
commite8ff433c4666c75d099e7e5eab0f569ff6285c5e
tree1cc56d86f693727c26bba63b0b96572e717276f5
parent5c47c35c5a69ebb1020a0c4538fa2f8de4b59e87
ctdb-ipalloc: Move create_merged_ip_list() into ipalloc

How the existing IP layout is constructed and how the merged IP list is
sorted are important aspects of the IP allocation algorithm.  Construct the
merged IP list when known and available IPs are assigned.

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