From a2adbe25c930e602c33b8b0ad9f267cb22fd2c2f Mon Sep 17 00:00:00 2001 From: zhengchao Date: Fri, 13 Nov 2015 13:33:16 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E4=B8=89=E4=B8=AAMESA=5Fhtab?= =?UTF-8?q?le=E7=9A=84=E5=88=9B=E5=BB=BA=E5=8F=82=E6=95=B0thread=5Fsafe=3D?= =?UTF-8?q?0=EF=BC=8Crecursive=3D0=EF=BC=8C=E5=9B=A0=E4=B8=BA=E8=BF=99?= =?UTF-8?q?=E4=BA=9B=E5=93=88=E5=B8=8C=E8=A1=A8=E5=8F=AA=E4=BC=9A=E5=9C=A8?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E6=9B=B4=E6=96=B0=E7=BA=BF=E7=A8=8B=E4=BD=BF?= =?UTF-8?q?=E7=94=A8=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/entry/Maat_rule.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/entry/Maat_rule.cpp b/src/entry/Maat_rule.cpp index ad2325e..4e322b1 100644 --- a/src/entry/Maat_rule.cpp +++ b/src/entry/Maat_rule.cpp @@ -21,7 +21,7 @@ #include "rulescan.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* 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; memset(&hargs,0,sizeof(hargs)); - hargs.thread_safe=512; + hargs.thread_safe=0; hargs.hash_slot_size = 1024*1024; hargs.max_elem_num = 0; hargs.eliminate_type = HASH_ELIMINATE_ALGO_LRU; hargs.expire_time = 0; hargs.key_comp = NULL; hargs.key2index = NULL; - hargs.recursive = 1; + hargs.recursive = 0; // hargs.data_free = _void_destroy_compile_rule; hargs.data_free = EMPTY_FREE;