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",