recoverd: Nodes can only takeover IPs if they are in runstate RUNNING
commitf35e9bba9bd4b568e51d49e342bc99d3d5caeeb1
authorMartin Schwenke <martin@meltin.net>
Mon, 6 May 2013 05:36:29 +0000 (6 15:36 +1000)
committerMartin Schwenke <martin@meltin.net>
Fri, 24 May 2013 06:27:55 +0000 (24 16:27 +1000)
treefd71c297d05a2a614b4dcb27cbcddeef52f82e08
parent7f03618ae444432d5e9a2b4b8fad3fc8a3db82d5
recoverd: Nodes can only takeover IPs if they are in runstate RUNNING

Currently the order of the first IP allocation, including the first
"ipreallocated" event, and the "startup" event is undefined.  Both of
these events can (re)start services.

This stops IPs being hosted before the "startup" event has completed.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Pair-programmed-with: Amitay Isaacs <amitay@gmail.com>

(This used to be ctdb commit f15dd562fd8c08cafd957ce9509102db7eb49668)
ctdb/server/ctdb_takeover.c
ctdb/tests/src/ctdb_takeover_tests.c