From a1d23a13e1e012b28793283c6d6a9463d52e9d5c Mon Sep 17 00:00:00 2001 From: zhengchao Date: Sat, 22 Aug 2020 19:13:13 +0800 Subject: [PATCH] =?UTF-8?q?table=20info=E4=BD=BF=E7=94=A8interval=E7=A7=B0?= =?UTF-8?q?=E5=91=BC=E6=95=B0=E5=80=BC=E7=B1=BB=E8=A1=A8=EF=BC=8C=E5=90=8C?= =?UTF-8?q?=E6=97=B6=E5=85=BC=E5=AE=B9=E5=8E=9Fintval=E4=B8=A4=E7=A7=8D?= =?UTF-8?q?=E5=91=BD=E5=90=8D=E3=80=82=E6=89=AB=E6=8F=8F=E8=A7=84=E5=88=99?= =?UTF-8?q?=E7=94=A8interval=E8=A1=A8=E7=A4=BA=E6=95=B0=E5=80=BC=E8=8C=83?= =?UTF-8?q?=E5=9B=B4=EF=BC=8C=E6=89=AB=E6=8F=8F=E8=BE=93=E5=85=A5=E7=94=A8?= =?UTF-8?q?intval=E8=A1=A8=E7=A4=BAint=E6=95=B0=E5=80=BC=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/entry/Maat_rule.cpp | 2 +- src/entry/Maat_table.cpp | 2 ++ src/entry/json2iris.cpp | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/entry/Maat_rule.cpp b/src/entry/Maat_rule.cpp index 63961fe..6d54746 100644 --- a/src/entry/Maat_rule.cpp +++ b/src/entry/Maat_rule.cpp @@ -34,7 +34,7 @@ #include "stream_fuzzy_hash.h" #include "gram_index_engine.h" -int MAAT_FRAME_VERSION_3_0_20200819=1; +int MAAT_FRAME_VERSION_3_0_20200822=1; int is_valid_table_name(const char* str) { diff --git a/src/entry/Maat_table.cpp b/src/entry/Maat_table.cpp index 6330510..2994445 100644 --- a/src/entry/Maat_table.cpp +++ b/src/entry/Maat_table.cpp @@ -492,7 +492,9 @@ struct Maat_table_manager* Maat_table_manager_create(const char* table_info_path map_register(string2int_map,"plugin", TABLE_TYPE_PLUGIN); map_register(string2int_map,"ip_plugin", TABLE_TYPE_IP_PLUGIN); map_register(string2int_map,"intval", TABLE_TYPE_INTERVAL); + map_register(string2int_map,"interval", TABLE_TYPE_INTERVAL); map_register(string2int_map,"intval_plus", TABLE_TYPE_INTERVAL_PLUS); + map_register(string2int_map,"interval_plus", TABLE_TYPE_INTERVAL_PLUS); map_register(string2int_map,"digest", TABLE_TYPE_DIGEST); map_register(string2int_map,"expr_plus", TABLE_TYPE_EXPR_PLUS); map_register(string2int_map,"group", TABLE_TYPE_GROUP); diff --git a/src/entry/json2iris.cpp b/src/entry/json2iris.cpp index 160c42c..69eba2b 100644 --- a/src/entry/json2iris.cpp +++ b/src/entry/json2iris.cpp @@ -164,7 +164,9 @@ int set_iris_descriptor(const char* json_file,cJSON *json, const char* encrypt_k map_register(iris_cfg->str2int_map, "expr",TABLE_TYPE_EXPR); map_register(iris_cfg->str2int_map, "expr_plus",TABLE_TYPE_EXPR_PLUS); map_register(iris_cfg->str2int_map, "intval",TABLE_TYPE_INTERVAL); + map_register(iris_cfg->str2int_map, "interval",TABLE_TYPE_INTERVAL); map_register(iris_cfg->str2int_map, "intval_plus",TABLE_TYPE_INTERVAL_PLUS); + map_register(iris_cfg->str2int_map, "interval_plus",TABLE_TYPE_INTERVAL_PLUS); map_register(iris_cfg->str2int_map, "digest",TABLE_TYPE_DIGEST); map_register(iris_cfg->str2int_map, "similar",TABLE_TYPE_SIMILARITY);