ctdb/daemon: Optimise deletion of IPs
commit20c719677a28afa1d1b912b9fadbf384e9e65de7
authorMartin Schwenke <martin@meltin.net>
Wed, 22 Jan 2014 06:01:19 +0000 (22 17:01 +1100)
committerAmitay Isaacs <amitay@samba.org>
Sun, 23 Mar 2014 05:20:43 +0000 (23 06:20 +0100)
treee7fc8936aea4975ff1b7700913cb12682e7b0fb5
parent9b907536fb657fa15c02858caf0ffff633ecd478
ctdb/daemon: Optimise deletion of IPs

Previous commits maintained the ordering between
ctdb_remove_orphaned_ifaces() and ctdb_vnn_unassign_iface().  This
meant that ctdb_remove_orphaned_ifaces() needed to steal the orphaned
interfaces and they would be freed later.

Unassign the interface first and things get simpler.
ctdb_remove_orphaned_ifaces() is now self-contained.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
Autobuild-User(master): Amitay Isaacs <amitay@samba.org>
Autobuild-Date(master): Sun Mar 23 06:20:43 CET 2014 on sn-devel-104
ctdb/server/ctdb_takeover.c