mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
logging/Manager: Also pass non-null vector and set
Primarily to align with strings and also to keep the plugin API the same.
This commit is contained in:
parent
247931f2df
commit
c44ce78591
1 changed files with 0 additions and 6 deletions
|
@ -1566,9 +1566,6 @@ threading::Value Manager::ValToLogVal(WriterInfo* info, const Stream* stream, st
|
||||||
info->total_truncated_containers->Inc();
|
info->total_truncated_containers->Inc();
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( allowed_elements == 0 )
|
|
||||||
return lval;
|
|
||||||
|
|
||||||
lval.val.set_val.vals = new threading::Value*[allowed_elements];
|
lval.val.set_val.vals = new threading::Value*[allowed_elements];
|
||||||
|
|
||||||
for ( size_t i = 0; i < allowed_elements && total_record_size < max_log_record_size; i++ ) {
|
for ( size_t i = 0; i < allowed_elements && total_record_size < max_log_record_size; i++ ) {
|
||||||
|
@ -1597,9 +1594,6 @@ threading::Value Manager::ValToLogVal(WriterInfo* info, const Stream* stream, st
|
||||||
info->total_truncated_containers->Inc();
|
info->total_truncated_containers->Inc();
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( allowed_elements == 0 )
|
|
||||||
return lval;
|
|
||||||
|
|
||||||
lval.val.vector_val.vals = new threading::Value*[allowed_elements];
|
lval.val.vector_val.vals = new threading::Value*[allowed_elements];
|
||||||
|
|
||||||
auto& vv = vec->RawVec();
|
auto& vv = vec->RawVec();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue