ctdb-ipalloc: Don't build a global IP tree
authorMartin Schwenke <martin@meltin.net>
Mon, 20 Jun 2016 10:53:58 +0000 (20:53 +1000)
committerAmitay Isaacs <amitay@samba.org>
Mon, 4 Jul 2016 13:42:25 +0000 (15:42 +0200)
commitc09cf571b7a9a4584be079d7989575f21b1fb915
treec7e37c1d18511c7a8ef3f7ef8b695cab06a8c2e1
parent55f13b74bf4ee460b153d062acbdd758ce58ed1a
ctdb-ipalloc: Don't build a global IP tree

It isn't used outside this function, so just use a local variable.

This makes create_merged_ip_list() independent of the CTDB context.

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