mirror of
https://github.com/zeek/zeek.git
synced 2025-10-08 17:48:21 +00:00
add comment for seth to make us not forget about the copy statements
This commit is contained in:
parent
fe779575d5
commit
2cfef36116
1 changed files with 3 additions and 0 deletions
|
@ -124,6 +124,7 @@ event SumStats::send_data(uid: string, ssid: string, data: ResultTable)
|
|||
if ( |data| == 0 )
|
||||
done = T;
|
||||
|
||||
# Note: copy is needed to compensate serialization caching issue. This should be changed to something else later.
|
||||
event SumStats::cluster_ss_response(uid, ssid, copy(local_data), done);
|
||||
if ( ! done )
|
||||
schedule 0.01 sec { SumStats::send_data(uid, ssid, data) };
|
||||
|
@ -150,6 +151,8 @@ event SumStats::cluster_key_request(uid: string, ssid: string, key: Key)
|
|||
if ( ssid in result_store && key in result_store[ssid] )
|
||||
{
|
||||
#print fmt("WORKER %s: received the cluster_key_request event for %s=%s.", Cluster::node, key2str(key), data);
|
||||
|
||||
# Note: copy is needed to compensate serialization caching issue. This should be changed to something else later.
|
||||
event SumStats::cluster_key_response(uid, ssid, key, copy(result_store[ssid][key]));
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue