Merge branch 'topic/bloomfilter-performance-boost' of https://github.com/bro/bro

* 'topic/bloomfilter-performance-boost' of https://github.com/bro/bro:
  Remove unnessary check
This commit is contained in:
Jon Siwek 2018-11-08 09:38:52 -06:00
commit e3612960ee
3 changed files with 5 additions and 4 deletions

View file

@ -1,4 +1,8 @@
2.6-beta2-82 | 2018-11-08 09:38:52 -0600
* Remove unnecessary Bloom filter empty check (Matthias Vallentin)
2.6-beta2-80 | 2018-11-07 11:46:34 -0600
* Support appending to vector of any (Jon Siwek, Corelight)

View file

@ -1 +1 @@
2.6-beta2-80
2.6-beta2-82

View file

@ -173,9 +173,6 @@ function bloomfilter_lookup%(bf: opaque of bloomfilter, x: any%): count
%{
const BloomFilterVal* bfv = static_cast<const BloomFilterVal*>(bf);
if ( bfv->Empty() )
return new Val(0, TYPE_COUNT);
if ( ! bfv->Type() )
reporter->Error("cannot perform lookup on untyped Bloom filter");