ctdb-daemon: Factor out new function release_ip_post()
authorMartin Schwenke <martin@meltin.net>
Thu, 11 Aug 2016 03:57:43 +0000 (13:57 +1000)
committerMartin Schwenke <martins@samba.org>
Wed, 17 Aug 2016 21:00:26 +0000 (23:00 +0200)
commit46c5136e4e4bd291cbb96395374c9b133f5d8ad8
treee2ecfd835ed196f1f2f27e46eabc4bc3539a84a6
parente653c8bb4a7bd712351a4ead3997c61b22c46f8d
ctdb-daemon: Factor out new function release_ip_post()

This contains the cleanup that needs to be done after an IP address is
released from an interface.

state->vnn is set to the return value from release_ip_post(), which is
either the original VNN, or NULL if it was deleted.  This allows
correct handling of the in-flight flag in the destructor for state.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=12158

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