提交 f3924dab 编写于 作者: U UlricQin

delete pendings when recoverRule

上级 ac6f49e6
......@@ -330,6 +330,14 @@ func (r RuleEval) fireEvent(event *models.AlertCurEvent) {
}
func (r RuleEval) recoverRule(alertingKeys map[string]struct{}, now int64) {
for hash := range r.pendings {
if _, has := alertingKeys[hash]; has {
continue
}
delete(r.pendings, hash)
}
for hash, event := range r.fires {
if _, has := alertingKeys[hash]; has {
continue
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册