ctdbd: Add new runstate CTDB_RUNSTATE_FIRST_RECOVERY
authorMartin Schwenke <martin@meltin.net>
Thu, 18 Apr 2013 10:30:14 +0000 (20:30 +1000)
committerAmitay Isaacs <amitay@gmail.com>
Fri, 24 May 2013 04:08:07 +0000 (14:08 +1000)
commited6814ff0a59ddbb1c1b3128b505380f60d7aeb7
tree7708c08a05056f77b11d3b4779651655c11850c1
parent4a2effcc455be67ff4a779a59ca81ba584312cd6
ctdbd: Add new runstate CTDB_RUNSTATE_FIRST_RECOVERY

This adds more serialisation to the startup, ensuring that the
"startup" event runs after everything to do with the first recovery
(including the "recovered" event).

Given that it now takes longer to get to the "startup" state, the
initscript needs to wait until ctdbd gets to "first_recovery".

Signed-off-by: Martin Schwenke <martin@meltin.net>
Pair-programmed-with: Amitay Isaacs <amitay@gmail.com>
common/ctdb_util.c
config/ctdb.init
doc/ctdb.1.xml
include/ctdb_private.h
server/ctdb_daemon.c
server/ctdb_monitor.c
server/ctdb_recover.c
tools/ctdb.c