ctdb-ipalloc: Move IP allocation state into its own struct
authorMartin Schwenke <martin@meltin.net>
Thu, 29 Oct 2015 05:49:44 +0000 (16:49 +1100)
committerAmitay Isaacs <amitay@samba.org>
Fri, 20 Nov 2015 00:36:31 +0000 (01:36 +0100)
commitcfa0ffe78073f9e3a014bb127fb9a4b7ad95fceb
tree55fbe405966cc3555a39028c614a1cf375a40953
parentd7739d8a7f2d72c5cf6d77272d11f5dd859b6010
ctdb-ipalloc: Move IP allocation state into its own struct

Most of the IP allocation code does not need a CTDB context.  However,
temporarily hang this off the CTDB context and make only the changes
relating to known/available IP address.  This makes those logic
changes obvious without burying them in function type changes.

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