修复超时淘汰时,未能正确删除MAAT_LABEL_INDEX。
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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",
|
||||||
|
|||||||
Reference in New Issue
Block a user