修复超时淘汰时,未能正确删除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->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;
}