ctdb-tools: New function ctdb_kill_tcp_init()
authorMartin Schwenke <martin@meltin.net>
Thu, 29 Jun 2017 06:35:06 +0000 (16:35 +1000)
committerMartin Schwenke <martins@samba.org>
Tue, 19 Sep 2017 11:30:27 +0000 (13:30 +0200)
commit44cdda4ee0494d1b40b92569429c9380b948e08a
treeda58a618fd23747a4103511b156d040181558f43
parent3f78dddea95fb90ac01d52229d9449c6b094de64
ctdb-tools: New function ctdb_kill_tcp_init()

This replaces ctdb_killtcp(), which did the initialisation inside a
loop.  The new logic is inverted, making it more natural.

The variable containing all the state is called "state" in
anticipation of the next commit that will convert this to a tevent_req
computation.  This will mean less churn.

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