将指标统计导入到数据库时忽略 transaction deadlock错误

This commit is contained in:
刘祥超
2022-11-06 16:03:33 +08:00
parent 241f41e900
commit 3d154411de

View File

@@ -92,7 +92,9 @@ func init() {
return nil return nil
}(key) }(key)
if err != nil { if err != nil {
remotelogs.Error("METRIC_STAT", "upload metric stats failed: "+err.Error()) if !models.CheckSQLErrCode(err, 1213 /** transaction deadlock **/) {
remotelogs.Error("METRIC_STAT", "upload metric stats failed: "+err.Error())
}
} }
// 人为限速 // 人为限速