修正设置IP Plugin时,未正确设置estimate size的bug,默认值4K,在加载大量配置时会发生严重哈希冲突。

This commit is contained in:
zhengchao
2020-06-22 20:22:20 +08:00
parent 7519c63d66
commit 14078e971c
2 changed files with 3 additions and 3 deletions

View File

@@ -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)
{

View File

@@ -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)
{