ctdb-takeover: Send banning credit messages from fail callback
authorMartin Schwenke <martin@meltin.net>
Tue, 3 May 2016 05:09:25 +0000 (15:09 +1000)
committerAmitay Isaacs <amitay@samba.org>
Fri, 13 May 2016 11:47:17 +0000 (13:47 +0200)
commit0053b85fc63dbe1386d1053cfde0301135eba0a3
tree1c624a8025f82b137f9ed333c3ee34c267aba1f2
parentdb9ec11b1abfa9e1690b4cfcfa2ad12da6ce9091
ctdb-takeover: Send banning credit messages from fail callback

Banning credits are now assigned by takeover runs called from all
locations in the recovery daemon.  Previously this only happened from
one of the callers.  When separating out the takeover run code the
behaviour should be consistent.

The callback (and corresponding data) passed to ctdb_takeover_run() is
now ignored.  Dropping this will allow the interface between the
recovery daemon and IP takeover to be simplified.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
ctdb/server/ctdb_takeover.c