mirror of
https://github.com/zeek/zeek.git
synced 2025-10-16 21:48:21 +00:00
new global_options() BiF to speed up startup, plus a micro-preen
This commit is contained in:
parent
07f5e9cbe7
commit
fab4905fc2
3 changed files with 21 additions and 9 deletions
|
@ -162,13 +162,7 @@ event zeek_init() &priority=10
|
|||
@if ( !Cluster::is_enabled() || Cluster::local_node_type() == Cluster::MANAGER )
|
||||
# Iterate over all existing options and add ourselves as change handlers
|
||||
# with a low priority so that we can log the changes.
|
||||
local gids = global_ids();
|
||||
for ( i, gid in gids )
|
||||
{
|
||||
if ( ! gid$option_value )
|
||||
next;
|
||||
|
||||
Option::set_change_handler(i, config_option_changed, -100);
|
||||
}
|
||||
for ( opt in global_options() )
|
||||
Option::set_change_handler(opt, config_option_changed, -100);
|
||||
@endif
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue