修复超时淘汰时,未能正确删除MAAT_LABEL_INDEX。

This commit is contained in:
zhengchao
2017-08-25 13:11:23 +08:00
parent 06b18f4924
commit 98889123aa
2 changed files with 5 additions and 7 deletions

View File

@@ -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->table_name
,s_rule->rule_id); ,s_rule->rule_id);
append_cmd_cnt++; append_cmd_cnt++;
if(s_rule->label_id>0)
{ redisAppendCommand(ctx,"ZREM %s %d",rm_label_sset
redisAppendCommand(ctx,"ZREM %s %d",rm_label_sset ,s_rule->rule_id);
,s_rule->rule_id); append_cmd_cnt++;
append_cmd_cnt++;
}
return append_cmd_cnt; return append_cmd_cnt;
} }

View File

@@ -28,7 +28,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_0_20170824_2=1; int MAAT_FRAME_VERSION_2_0_20170825=1;
const char *maat_module="MAAT Frame"; const char *maat_module="MAAT Frame";
const char* CHARSET_STRING[]={"NONE","gbk","big5","unicode","utf8","bin", const char* CHARSET_STRING[]={"NONE","gbk","big5","unicode","utf8","bin",