recoverd: Move failback retry loop into basic_failback() and lcp2_failback()
authorMartin Schwenke <martin@meltin.net>
Thu, 13 Dec 2012 01:15:32 +0000 (12:15 +1100)
committerMartin Schwenke <martin@meltin.net>
Mon, 7 Jan 2013 23:16:11 +0000 (10:16 +1100)
commitf6ce18d011dd9043b04256690d826deb2640cd89
tree41f8a4639b52e80ca6177db4b6eddd74526f7cbd
parentc09aeaecad7d3232b1c07bab826b96818756f5e0
recoverd: Move failback retry loop into basic_failback() and lcp2_failback()

The retry loop is currently in ctdb_takeover_run_core().  Pushing it
into each function will make it possible to put each algorithm into a
separate top-level function.  This will make the code much clearer and
more maintainable.

Also keep associated test code compatible.

Signed-off-by: Martin Schwenke <martin@meltin.net>
server/ctdb_takeover.c
tests/src/ctdb_takeover_tests.c