ctdbd: Only start recovery daemon and timed events after setup event
authorMartin Schwenke <martin@meltin.net>
Thu, 10 Jan 2013 05:33:36 +0000 (16:33 +1100)
committerAmitay Isaacs <amitay@gmail.com>
Fri, 24 May 2013 04:08:06 +0000 (14:08 +1000)
commitc31feb27dcdb748b5333321c85fe54852dfa1bcf
tree79ff3dc61bf7d42dec95760c2b6012f9ae126d98
parent8076773a9924dcf8aff16f7d96b2b9ac383ecc28
ctdbd: Only start recovery daemon and timed events after setup event

This deconstructs ctdb_start_transport(), which did much more than
starting the transport.

This removes a very unlikely race and adds some clarity.  The setup
event is supposed to set the tunables before the first recovery.
However, there was nothing stopping the first recovery from starting
before the setup event had completed.

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