ctdb-recoverd: Simplify arguments to ctdb_ban_node()
authorMartin Schwenke <martin@meltin.net>
Thu, 9 Dec 2021 23:31:56 +0000 (10:31 +1100)
committerMartin Schwenke <martins@samba.org>
Mon, 17 Jan 2022 10:21:32 +0000 (10:21 +0000)
commitb7c138ca99a4a839b9c30e59dff40fd2b95e13ec
tree38b7feba5efd42451cd8f9b1020f12dc41077c80
parenta5e0ddac626bc90c859949c977657cdf1fa110ac
ctdb-recoverd: Simplify arguments to ctdb_ban_node()

ban_time argument is always ctdb->tunable.recovery_ban_period, so
build this in and make the calling code more readable.

ctdb_ban_node() already logs how long a node is banned for, so don't
repeatedly log this.

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