mirror of
https://github.com/zeek/zeek.git
synced 2025-10-04 23:58:20 +00:00
DataSeries tuning.
- Now using the new DS interface from git to remove warning. - New leak tests, not yet tried,
This commit is contained in:
parent
4b70adcb4b
commit
c91563fe75
5 changed files with 52 additions and 10 deletions
|
@ -329,13 +329,7 @@ bool DataSeries::DoInit(string path, int num_fields, const threading::Field* con
|
|||
else
|
||||
Warning(Fmt("%s is not a valid compression type. Valid types are: 'lzf', 'lzo', 'gz', 'bz2', 'none', 'any'. Defaulting to 'any'", ds_compression.c_str()));
|
||||
|
||||
const ExtentType& type = log_types.registerTypeR(schema);
|
||||
|
||||
// Note: This is a bit dicey as it depends on the implementation of
|
||||
// registerTypeR(), but its what the DataSeries guys recommended
|
||||
// given that we function we originally used has been deprecated.
|
||||
log_type = &type;
|
||||
|
||||
log_type = log_types.registerTypePtr(schema);
|
||||
log_series.setType(*log_type);
|
||||
|
||||
return OpenLog(path);
|
||||
|
|
|
@ -100,7 +100,7 @@ private:
|
|||
// Internal DataSeries structures we need to keep track of.
|
||||
vector<SchemaValue> schema_list;
|
||||
ExtentTypeLibrary log_types;
|
||||
const ExtentType *log_type;
|
||||
ExtentType::Ptr log_type;
|
||||
ExtentSeries log_series;
|
||||
ExtentMap extents;
|
||||
int compress_type;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue