Change the function for log extension to take a path only and update tests.

We were having stack overflow issues creep in with the self-referential
field for the log extension function.
This commit is contained in:
Seth Hall 2016-08-10 13:53:27 -04:00
parent 5f6565d62c
commit 79e49e1ab5
11 changed files with 213 additions and 150 deletions

View file

@ -1063,7 +1063,7 @@ threading::Value** Manager::RecordToFilterVals(Stream* stream, Filter* filter,
if ( filter->num_ext_fields > 0 )
{
val_list vl(1);
vl.append(filter->fval->AsRecordVal()->Ref());
vl.append(filter->path_val->Ref());
ext_rec = filter->ext_func->Call(&vl)->AsRecordVal();
}
@ -1111,6 +1111,11 @@ threading::Value** Manager::RecordToFilterVals(Stream* stream, Filter* filter,
}
}
if ( ext_rec != 0 )
{
Unref(ext_rec);
}
return vals;
}