summaryrefslogtreecommitdiffstats
path: root/ctdb/tests/scripts/integration.bash
diff options
context:
space:
mode:
authorMartin Schwenke <martin@meltin.net>2012-11-23 20:09:07 +1100
committerMartin Schwenke <martin@meltin.net>2013-01-07 12:19:33 +1100
commit4f0d68cba6b905ff19c7183dfbeb740e1162aa54 (patch)
tree4f986512978a3f44f1e37163df637f757f55baec /ctdb/tests/scripts/integration.bash
parent1eddc33d7043616eef9c29f07f2cb750ce5a676f (diff)
ctdbd: Clean up orphaned interfaces when an IP is deleted
Add a new function ctdb_remove_orphaned_ifaces() and call it in ctdb_control_del_public_address(). ctdb_remove_orphaned_ifaces() uses a naive implementation that does things in a very obvious way. There are many ways to improve the performance - some are mentioned in a comment in the code. However, I doubt that this will be a bottleneck even with a large number of public IPs. Running the eventscript is likely to outweigh the cost of this cleanup. Signed-off-by: Martin Schwenke <martin@meltin.net> Pair-programmed-with: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit cc1a3ae911d3fee8b87fda5de5ab6d9499d7510a)
Diffstat (limited to 'ctdb/tests/scripts/integration.bash')
0 files changed, 0 insertions, 0 deletions