ctdb-ipalloc: Check for available IPs, not runstate, in takeover run
authorMartin Schwenke <martin@meltin.net>
Wed, 28 Oct 2015 11:11:33 +0000 (22:11 +1100)
committerAmitay Isaacs <amitay@samba.org>
Mon, 16 Nov 2015 07:42:11 +0000 (08:42 +0100)
commit9ea318847a3ec2a18ce897833b8a5fcf6d8c4205
tree03e878070d569c66494111b19c412a71ef28e0d4
parent66574c9fda26ee72f04426b2f7c96fe617332620
ctdb-ipalloc: Check for available IPs, not runstate, in takeover run

The available IPs list is now only non-empty for nodes that are in
RUNNING runstate.  So, to avoid running the IP allocation algorithm
when there are no available available IPs, explicitly check for
available IPs rather than checking runstates.

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