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

Function extractTiDBRowIDFromDecodedKey

dumpling/export/dump.go:1127–1133  ·  view source on GitHub ↗
(indexField, key string)

Source from the content-addressed store, hash-verified

1125}
1126
1127func extractTiDBRowIDFromDecodedKey(indexField, key string) (string, error) {
1128 if p := strings.Index(key, indexField); p != -1 {
1129 p += len(indexField)
1130 return key[p:], nil
1131 }
1132 return "", errors.Errorf("decoded key %s doesn't have %s field", key, indexField)
1133}
1134
1135func getListTableTypeByConf(conf *Config) listTableType {
1136 // use listTableByShowTableStatus by default because it has better performance

Callers 2

selectTiDBTableRegionFunction · 0.85

Calls 2

IndexMethod · 0.80
ErrorfMethod · 0.65

Tested by

no test coverage detected