ctdbd: Replace ctdb->done_startup with ctdb->runstate
authorMartin Schwenke <martin@meltin.net>
Thu, 10 Jan 2013 05:06:25 +0000 (16:06 +1100)
committerAmitay Isaacs <amitay@gmail.com>
Fri, 24 May 2013 04:08:06 +0000 (14:08 +1000)
commit8076773a9924dcf8aff16f7d96b2b9ac383ecc28
tree5d198efd0ca0a5d190e0d6081668a7ec9a233c71
parent9e7b7cd04adc5e66e2ffa4edf463a682aaea379b
ctdbd: Replace ctdb->done_startup with ctdb->runstate

This allows states, including startup and shutdown states, to be
clearly tracked.  This doesn't include regular runtime "states", which
are handled by node flags.

Introduce new functions ctdb_set_runstate(), runstate_to_string() and
runstate_from_string().

Signed-off-by: Martin Schwenke <martin@meltin.net>
Pair-programmed-with: Amitay Isaacs <amitay@gmail.com>
common/ctdb_util.c
include/ctdb_private.h
server/ctdb_control.c
server/ctdb_daemon.c
server/ctdb_ltdb_server.c
server/ctdb_monitor.c
server/ctdb_takeover.c