From 6e8f7b537d780261e4054aee58a8d8f34f42b34b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ermal=20Lu=E7i?= Date: Fri, 22 May 2009 16:51:12 +0000 Subject: Move Sync of config from filter.inc filter_reload to write_config and all the code in a new file rc.filter_synchronize. The later is called by check_reload_status with the tmp/filter_sync action triggered with carp_sync_client() function. This solves the excessive syncing of configs on not needed cases and speedups the filter_configure_sync! --- etc/inc/util.inc | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'etc/inc/util.inc') diff --git a/etc/inc/util.inc b/etc/inc/util.inc index c419369..11772d9 100644 --- a/etc/inc/util.inc +++ b/etc/inc/util.inc @@ -966,4 +966,11 @@ function is_interface_mismatch() { return $do_assign; } +/* sync carp entries to other firewalls */ +function carp_sync_client() { + global $g; + update_filter_reload_status("Syncing CARP data"); + touch($g['tmp_path'] . "/filter_sync"); +} + ?> -- cgit v1.1