mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
Fixed an issue causing reporter messages from the metrics framework.
This commit is contained in:
parent
9366411cf4
commit
bcd7fe114d
1 changed files with 4 additions and 2 deletions
|
@ -174,7 +174,7 @@ global index_requests: table[string, string, string, Index] of ResultVal &read_e
|
|||
# This variable is maintained by managers to prevent overwhelming communication due
|
||||
# to too many intermediate updates. Each metric filter is tracked separately so that
|
||||
# one metric won't overwhelm and degrade other quieter metrics.
|
||||
global outstanding_global_views: table[string, string] of count;
|
||||
global outstanding_global_views: table[string, string] of count &default=0;
|
||||
|
||||
# Managers handle logging.
|
||||
event Metrics::finish_period(filter: Filter)
|
||||
|
@ -226,6 +226,8 @@ event Metrics::cluster_index_response(uid: string, id: string, filter_name: stri
|
|||
}
|
||||
delete done_with[uid];
|
||||
delete index_requests[uid, id, filter_name, index];
|
||||
# Check that there is an outstanding view before subtracting.
|
||||
if ( outstanding_global_views[id, filter_name] > 0 )
|
||||
--outstanding_global_views[id, filter_name];
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue