DataSeries tuning.

- Now using the new DS interface from git to remove warning.

- New leak tests, not yet tried,
This commit is contained in:
Robin Sommer 2012-04-24 17:57:05 -07:00
parent 4b70adcb4b
commit c91563fe75
5 changed files with 52 additions and 10 deletions

View file

@ -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);

View file

@ -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;