From 3fed519d0c1fc9a006af8b3f81ce50ce5de193dc Mon Sep 17 00:00:00 2001 From: Timothy Stack Date: Wed, 1 Mar 2017 09:07:32 -0800 Subject: [PATCH] missed filling out the numeric value indexes for patterns --- src/log_format.cc | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/log_format.cc b/src/log_format.cc index 5b685288..68486871 100644 --- a/src/log_format.cc +++ b/src/log_format.cc @@ -1414,6 +1414,17 @@ void external_log_format::build(std::vector &errors) { } ivd.ivd_value_def = value_iter->second.get(); pat.p_value_by_index.push_back(ivd); + + if (!vd.vd_foreign_key && !vd.vd_identifier) { + switch (vd.vd_kind) { + case logline_value::VALUE_INTEGER: + case logline_value::VALUE_FLOAT: + pat.p_numeric_value_indexes.push_back(ivd.ivd_index); + break; + default: + break; + } + } } }