MCPcopy
hub / github.com/pingcap/tidb / FallBack2CreateTable

Function FallBack2CreateTable

br/pkg/utils/retry.go:112–118  ·  view source on GitHub ↗
(err error)

Source from the content-addressed store, hash-verified

110}
111
112func FallBack2CreateTable(err error) bool {
113 switch nerr := errors.Cause(err).(type) {
114 case *terror.Error:
115 return nerr.Code() == tmysql.ErrInvalidDDLJob
116 }
117 return false
118}
119
120// RetryWithBackoffer is a simple context for a "mixed" retry.
121// Some of TiDB APIs, say, `ResolveLock` requires a `tikv.Backoffer` as argument.

Callers 1

CreateTablesMethod · 0.92

Calls 1

CauseMethod · 0.80

Tested by

no test coverage detected