(indexField, key string)
| 1125 | } |
| 1126 | |
| 1127 | func 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 | |
| 1135 | func getListTableTypeByConf(conf *Config) listTableType { |
| 1136 | // use listTableByShowTableStatus by default because it has better performance |
no test coverage detected