ctdb-daemon: Factor out new function release_ip_post()
commit5fa6a1dfb009698c6991d44c73cb98972a26bfe7
authorMartin Schwenke <martin@meltin.net>
Thu, 11 Aug 2016 03:57:43 +0000 (11 13:57 +1000)
committerStefan Metzmacher <metze@samba.org>
Wed, 24 Aug 2016 09:42:30 +0000 (24 11:42 +0200)
tree3728166c4730a1d90722a70cfca64e1a71cc0924
parentc80c2cf16e1f29f1950494174c45ff520cd219b4
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>
(cherry picked from commit 46c5136e4e4bd291cbb96395374c9b133f5d8ad8)
ctdb/server/ctdb_takeover.c