设置三个MESA_htable的创建参数thread_safe=0,recursive=0,因为这些哈希表只会在配置更新线程使用。
This commit is contained in:
@@ -21,7 +21,7 @@
|
|||||||
#include "rulescan.h"
|
#include "rulescan.h"
|
||||||
#include "UniversalBoolMatch.h"
|
#include "UniversalBoolMatch.h"
|
||||||
|
|
||||||
int MAAT_FRAME_VERSION_1_2_20151103
|
int MAAT_FRAME_VERSION_1_2_20151113=0;
|
||||||
const char *maat_module="MAAT Frame";
|
const char *maat_module="MAAT Frame";
|
||||||
const char* CHARSET_STRING[]={"CHARSET_NONE","GBK","BIG5","UNICODE","UTF-8"};
|
const char* CHARSET_STRING[]={"CHARSET_NONE","GBK","BIG5","UNICODE","UTF-8"};
|
||||||
|
|
||||||
@@ -641,14 +641,14 @@ struct _Maat_scanner_t* create_maat_scanner(unsigned int version,int scan_thread
|
|||||||
|
|
||||||
MESA_htable_create_args_t hargs;
|
MESA_htable_create_args_t hargs;
|
||||||
memset(&hargs,0,sizeof(hargs));
|
memset(&hargs,0,sizeof(hargs));
|
||||||
hargs.thread_safe=512;
|
hargs.thread_safe=0;
|
||||||
hargs.hash_slot_size = 1024*1024;
|
hargs.hash_slot_size = 1024*1024;
|
||||||
hargs.max_elem_num = 0;
|
hargs.max_elem_num = 0;
|
||||||
hargs.eliminate_type = HASH_ELIMINATE_ALGO_LRU;
|
hargs.eliminate_type = HASH_ELIMINATE_ALGO_LRU;
|
||||||
hargs.expire_time = 0;
|
hargs.expire_time = 0;
|
||||||
hargs.key_comp = NULL;
|
hargs.key_comp = NULL;
|
||||||
hargs.key2index = NULL;
|
hargs.key2index = NULL;
|
||||||
hargs.recursive = 1;
|
hargs.recursive = 0;
|
||||||
// hargs.data_free = _void_destroy_compile_rule;
|
// hargs.data_free = _void_destroy_compile_rule;
|
||||||
hargs.data_free = EMPTY_FREE;
|
hargs.data_free = EMPTY_FREE;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user