From 98889123aa2e64767c6730c939f27fc3d927c40f Mon Sep 17 00:00:00 2001 From: zhengchao Date: Fri, 25 Aug 2017 13:11:23 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=B6=85=E6=97=B6=E6=B7=98?= =?UTF-8?q?=E6=B1=B0=E6=97=B6=EF=BC=8C=E6=9C=AA=E8=83=BD=E6=AD=A3=E7=A1=AE?= =?UTF-8?q?=E5=88=A0=E9=99=A4MAAT=5FLABEL=5FINDEX=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/entry/Maat_command.cpp | 10 ++++------ src/entry/Maat_rule.cpp | 2 +- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/src/entry/Maat_command.cpp b/src/entry/Maat_command.cpp index 7a28e88..64e79f8 100644 --- a/src/entry/Maat_command.cpp +++ b/src/entry/Maat_command.cpp @@ -231,12 +231,10 @@ int del_rule_from_redis(redisContext* ctx, struct serial_rule_t* s_rule, long lo ,s_rule->table_name ,s_rule->rule_id); append_cmd_cnt++; - if(s_rule->label_id>0) - { - redisAppendCommand(ctx,"ZREM %s %d",rm_label_sset - ,s_rule->rule_id); - append_cmd_cnt++; - } + + redisAppendCommand(ctx,"ZREM %s %d",rm_label_sset + ,s_rule->rule_id); + append_cmd_cnt++; return append_cmd_cnt; } diff --git a/src/entry/Maat_rule.cpp b/src/entry/Maat_rule.cpp index e26fdf3..0202c32 100644 --- a/src/entry/Maat_rule.cpp +++ b/src/entry/Maat_rule.cpp @@ -28,7 +28,7 @@ #include "stream_fuzzy_hash.h" #include "gram_index_engine.h" -int MAAT_FRAME_VERSION_2_0_20170824_2=1; +int MAAT_FRAME_VERSION_2_0_20170825=1; const char *maat_module="MAAT Frame"; const char* CHARSET_STRING[]={"NONE","gbk","big5","unicode","utf8","bin",