mirror of
https://github.com/zeek/zeek.git
synced 2025-10-06 08:38:20 +00:00
One more tiny SumStats change to clean up cluster state.
This commit is contained in:
parent
abd7cdff43
commit
ea89e30a9c
1 changed files with 2 additions and 1 deletions
|
@ -205,7 +205,7 @@ event SumStats::cluster_threshold_crossed(ss_name: string, key: SumStats::Key, t
|
||||||
global stats_keys: table[string] of set[Key] &create_expire=1min
|
global stats_keys: table[string] of set[Key] &create_expire=1min
|
||||||
&expire_func=function(s: table[string] of set[Key], idx: string): interval
|
&expire_func=function(s: table[string] of set[Key], idx: string): interval
|
||||||
{
|
{
|
||||||
Reporter::warning(fmt("SumStat key request for the %s SumStat took longer than 1 minute and was automatically cancelled.", idx));
|
Reporter::warning(fmt("SumStat key request for the %s SumStat uid took longer than 1 minute and was automatically cancelled.", idx));
|
||||||
return 0secs;
|
return 0secs;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -356,6 +356,7 @@ event SumStats::send_no_key(uid: string, ss_name: string)
|
||||||
if ( ss?$epoch_finished )
|
if ( ss?$epoch_finished )
|
||||||
ss$epoch_finished(network_time());
|
ss$epoch_finished(network_time());
|
||||||
|
|
||||||
|
delete stats_keys[uid];
|
||||||
reset(ss);
|
reset(ss);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue