ctdb-ipalloc: Allocate memory off IP allocation state
authorMartin Schwenke <martin@meltin.net>
Tue, 3 Nov 2015 04:26:34 +0000 (15:26 +1100)
committerAmitay Isaacs <amitay@samba.org>
Mon, 23 Nov 2015 01:31:10 +0000 (02:31 +0100)
commit13162419be0f01ea67749390b03466f97fa2df80
treeb68738b278ca1721d2210920d5799a4b7429aab6
parent921e17d81ebbcc5ec4531925f108cff37e562845
ctdb-ipalloc: Allocate memory off IP allocation state

Instead of local or passed temporary contexts.

This has the side effect of making ipalloc_state available inside the
modified functions, making future use of ipalloc_state simpler.

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