(a, b []string)
| 69 | } |
| 70 | |
| 71 | func string2Map(a, b []string) map[string]string { |
| 72 | a2b := make(map[string]string, len(a)) |
| 73 | for i, str := range a { |
| 74 | a2b[str] = b[i] |
| 75 | } |
| 76 | return a2b |
| 77 | } |
| 78 | |
| 79 | func needRepeatableRead(serverType version.ServerType, consistency string) bool { |
| 80 | return consistency != ConsistencyTypeSnapshot || serverType != version.ServerTypeTiDB |
no outgoing calls
no test coverage detected