daemon: Make delete IP wait until the IP is released
authorMartin Schwenke <martin@meltin.net>
Wed, 22 Jan 2014 02:30:47 +0000 (13:30 +1100)
committerAmitay Isaacs <amitay@gmail.com>
Wed, 26 Mar 2014 02:58:29 +0000 (13:58 +1100)
commitddafa969748c57e93227ae76a42d55467ccb8726
tree93ef50b29f33834ecaa0f3f55237ea8d21251fc1
parentaa5a3726144c6e3ddae56ce394f5569463c32cc9
daemon: Make delete IP wait until the IP is released

reloadips really expects deleted IPs to be released before completing.
Otherwise the recovery daemon starts failing the local IP check.  The
races that follow can cause a node to be banned.

To make the error handling simple, do the actual deletion in
release_ip_callback().

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
(Imported from commit 9b907536fb657fa15c02858caf0ffff633ecd478)
include/ctdb_private.h
server/ctdb_control.c
server/ctdb_takeover.c