Skip to content

Commit a4b9350

Browse files
tiancaiamaojackysp
authored andcommitted
domain: update the schema check outdate metric (pingcap#11134)
1 parent 8104494 commit a4b9350

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

domain/schema_checker.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,10 @@ func (s *SchemaChecker) Check(txnTS uint64) error {
5656
metrics.SchemaLeaseErrorCounter.WithLabelValues("changed").Inc()
5757
return ErrInfoSchemaChanged
5858
case ResultUnknown:
59-
metrics.SchemaLeaseErrorCounter.WithLabelValues("outdated").Inc()
6059
time.Sleep(time.Duration(schemaOutOfDateRetryInterval))
6160
}
6261

6362
}
63+
metrics.SchemaLeaseErrorCounter.WithLabelValues("outdated").Inc()
6464
return ErrInfoSchemaExpired
6565
}

0 commit comments

Comments
 (0)