mirror of
https://github.com/zeek/zeek.git
synced 2025-10-09 18:18:19 +00:00
IndexType: Add IsPatternIndex(), like IsSubNetIndex()
This commit is contained in:
parent
074f51fc96
commit
c8bab6a0ec
5 changed files with 16 additions and 9 deletions
|
@ -1547,8 +1547,7 @@ void TableVal::Init(TableTypePtr t, bool ordered) {
|
|||
else
|
||||
subnets = nullptr;
|
||||
|
||||
auto& it = table_type->GetIndexTypes();
|
||||
if ( it.size() == 1 && it[0]->Tag() == TYPE_PATTERN && table_type->Yield() )
|
||||
if ( table_type->IsPatternIndex() && table_type->Yield() )
|
||||
pattern_matcher = new TablePatternMatcher(this, table_type->Yield());
|
||||
|
||||
table_hash = new detail::CompositeHash(table_type->GetIndices());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue