Skip to content

Commit

Permalink
telemetry: remove replicated analysisSQLUsage call (pingcap#29097)
Browse files Browse the repository at this point in the history
  • Loading branch information
iosmanthus authored Oct 26, 2021
1 parent 88f5711 commit 21b0088
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions telemetry/data_window.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,10 +164,9 @@ func readSQLMetric(timepoint time.Time, SQLResult *sqlUsageData) error {
promQL := "avg(tidb_executor_statement_total{}) by (type)"
result, err := querySQLMetric(ctx, timepoint, promQL)
if err != nil {
analysisSQLUsage(result, SQLResult)
} else {
analysisSQLUsage(result, SQLResult)
return err
}
analysisSQLUsage(result, SQLResult)
return nil
}

Expand Down

0 comments on commit 21b0088

Please sign in to comment.