banning: If node is already banned, do not run ctdb_local_node_got_banned()
authorAmitay Isaacs <amitay@gmail.com>
Mon, 27 Jul 2015 06:51:08 +0000 (16:51 +1000)
committerAmitay Isaacs <amitay@gmail.com>
Fri, 31 Jul 2015 03:35:01 +0000 (13:35 +1000)
commit714b2189a91f8ced21c2dc1dd8e792a90e769fa0
tree051e4acefebb015f23780e677a1157d7108fc7ce
parentabcf24832161d841ee9840efc40d128e1f9edd3d
banning: If node is already banned, do not run ctdb_local_node_got_banned()

This calls release_all_ips() only once on the first ban.  If the node gets
banned again due to event script timeout while running release_all_ips(),
then avoid calling release_all_ips() in re-entrant fashion.

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>
(Imported from commit 8eb04d09b119e234c88150e1dc35fc5057f9c926)
server/ctdb_banning.c