修正设置IP Plugin时,未正确设置estimate size的bug,默认值4K,在加载大量配置时会发生严重哈希冲突。
This commit is contained in:
@@ -33,7 +33,7 @@
|
|||||||
#include "stream_fuzzy_hash.h"
|
#include "stream_fuzzy_hash.h"
|
||||||
#include "gram_index_engine.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)
|
int is_valid_table_name(const char* str)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -137,8 +137,8 @@ static struct Maat_table_runtime* table_runtime_new(const struct Maat_table_sche
|
|||||||
break;
|
break;
|
||||||
case TABLE_TYPE_IP_PLUGIN:
|
case TABLE_TYPE_IP_PLUGIN:
|
||||||
table_rt->ip_plugin.ex_data_rt=EX_data_rt_new(table_schema->table_id,
|
table_rt->ip_plugin.ex_data_rt=EX_data_rt_new(table_schema->table_id,
|
||||||
table_schema->plugin.estimate_size,
|
table_schema->ip_plugin.estimate_size,
|
||||||
table_schema->plugin.ex_schema.key2index_func,
|
table_schema->ip_plugin.ex_schema.key2index_func,
|
||||||
free);
|
free);
|
||||||
if(table_schema->ip_plugin.have_exdata)
|
if(table_schema->ip_plugin.have_exdata)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user