mirror of
https://github.com/zeek/zeek.git
synced 2025-10-10 18:48:20 +00:00
Small updates for a warning from the cluster framework.
This commit is contained in:
parent
23643eb4da
commit
eda8632d62
1 changed files with 4 additions and 4 deletions
|
@ -86,15 +86,15 @@ function local_node_type(): NodeType
|
||||||
return is_enabled() ? nodes[node]$node_type : NONE;
|
return is_enabled() ? nodes[node]$node_type : NONE;
|
||||||
}
|
}
|
||||||
|
|
||||||
event remote_connection_handshake_done(p: event_peer)
|
event remote_connection_handshake_done(p: event_peer) &priority=5
|
||||||
{
|
{
|
||||||
if ( nodes[p$descr]$node_type == WORKER )
|
if ( p$descr in nodes && nodes[p$descr]$node_type == WORKER )
|
||||||
++worker_count;
|
++worker_count;
|
||||||
}
|
}
|
||||||
|
|
||||||
event remote_connection_closed(p: event_peer)
|
event remote_connection_closed(p: event_peer) &priority=5
|
||||||
{
|
{
|
||||||
if ( nodes[p$descr]$node_type == WORKER )
|
if ( p$descr in nodes && nodes[p$descr]$node_type == WORKER )
|
||||||
--worker_count;
|
--worker_count;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue