ctdb-daemon: Factor out new function release_ip_post()
commitf981ea8f677d0f48402c9af2014f833876196081
authorMartin Schwenke <martin@meltin.net>
Thu, 11 Aug 2016 03:57:43 +0000 (11 13:57 +1000)
committerKarolin Seeger <kseeger@samba.org>
Tue, 13 Sep 2016 10:27:28 +0000 (13 12:27 +0200)
tree87c6626ce7c298fd2ff2629474fec207702024a7
parent471eeecd5afc6b3d0b8ae75c25b16e127478bb0c
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