Skip to content

Commit

Permalink
cherry pick pingcap#25402 to release-5.0
Browse files Browse the repository at this point in the history
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
  • Loading branch information
lysu authored and ti-srebot committed Jun 15, 2021
1 parent dc40a09 commit ca47c00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/conn.go
Original file line number Diff line number Diff line change
Expand Up @@ -882,7 +882,7 @@ func (cc *clientConn) addMetrics(cmd byte, startTime time.Time, err error) {
} else {
label := strconv.Itoa(int(cmd))
if err != nil {
metrics.QueryTotalCounter.WithLabelValues(label, "ERROR").Inc()
metrics.QueryTotalCounter.WithLabelValues(label, "Error").Inc()
} else {
metrics.QueryTotalCounter.WithLabelValues(label, "OK").Inc()
}
Expand Down

0 comments on commit ca47c00

Please sign in to comment.