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)
commit0e678a73b8a16e29ff62c1e34335c868f9007ff4
treebf3ca816881f187075ced0ad66faffca13d0cf73
parent63577c96db3877417030f441268b3ec79bb82c2a
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>

(This used to be ctdb commit c31feb27dcdb748b5333321c85fe54852dfa1bcf)
ctdb/server/ctdb_daemon.c