recoverd: Nodes can only takeover IPs if they are in runstate RUNNING
authorMartin Schwenke <martin@meltin.net>
Mon, 6 May 2013 05:36:29 +0000 (15:36 +1000)
committerMartin Schwenke <martin@meltin.net>
Fri, 24 May 2013 06:27:55 +0000 (16:27 +1000)
commitf15dd562fd8c08cafd957ce9509102db7eb49668
treeb6c3e71e9097ce330fb17bc0ec8db96ada403eb4
parentc0c27762ea728ed86405b29c642ba9e43200f4ae
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>
server/ctdb_takeover.c
tests/src/ctdb_takeover_tests.c