mirror of
https://github.com/TeaOSLab/EdgeAPI.git
synced 2025-11-06 01:50:25 +08:00
将指标统计导入到数据库时忽略 transaction deadlock错误
This commit is contained in:
@@ -92,8 +92,10 @@ func init() {
|
|||||||
return nil
|
return nil
|
||||||
}(key)
|
}(key)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
if !models.CheckSQLErrCode(err, 1213 /** transaction deadlock **/) {
|
||||||
remotelogs.Error("METRIC_STAT", "upload metric stats failed: "+err.Error())
|
remotelogs.Error("METRIC_STAT", "upload metric stats failed: "+err.Error())
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// 人为限速
|
// 人为限速
|
||||||
countKeys++
|
countKeys++
|
||||||
|
|||||||
Reference in New Issue
Block a user