summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author郑超 <[email protected]>2020-06-22 20:23:54 +0800
committer郑超 <[email protected]>2020-06-22 20:23:54 +0800
commit4cb3f13b14ca5663565017812d752a1548185fc1 (patch)
tree699772d0823f462501fcb6700e3231a47c8d97f5
parent7519c63d666e3296ac13767d21bc126a85727794 (diff)
parent14078e971c95962f701d09063d61a9610c8f80a2 (diff)
Merge branch 'bugfix-ip-plugin-htable-size-ineffective' into 'master'v2.9.3
修正设置IP Plugin时,未正确设置estimate size的bug,默认值4K,在加载大量配置时会发生严重哈希冲突。 See merge request MESA_framework/maat!46
-rw-r--r--src/entry/Maat_rule.cpp2
-rw-r--r--src/entry/Maat_table_runtime.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/entry/Maat_rule.cpp b/src/entry/Maat_rule.cpp
index 2df96e8..e7530d1 100644
--- a/src/entry/Maat_rule.cpp
+++ b/src/entry/Maat_rule.cpp
@@ -33,7 +33,7 @@
#include "stream_fuzzy_hash.h"
#include "gram_index_engine.h"
-int MAAT_FRAME_VERSION_2_9_20200611=1;
+int MAAT_FRAME_VERSION_2_9_20200622=1;
int is_valid_table_name(const char* str)
{
diff --git a/src/entry/Maat_table_runtime.cpp b/src/entry/Maat_table_runtime.cpp
index 74718b7..c15531c 100644
--- a/src/entry/Maat_table_runtime.cpp
+++ b/src/entry/Maat_table_runtime.cpp
@@ -137,8 +137,8 @@ static struct Maat_table_runtime* table_runtime_new(const struct Maat_table_sche
break;
case TABLE_TYPE_IP_PLUGIN:
table_rt->ip_plugin.ex_data_rt=EX_data_rt_new(table_schema->table_id,
- table_schema->plugin.estimate_size,
- table_schema->plugin.ex_schema.key2index_func,
+ table_schema->ip_plugin.estimate_size,
+ table_schema->ip_plugin.ex_schema.key2index_func,
free);
if(table_schema->ip_plugin.have_exdata)
{