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

Function string2Map

dumpling/export/util.go:71–77  ·  view source on GitHub ↗
(a, b []string)

Source from the content-addressed store, hash-verified

69}
70
71func 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
79func needRepeatableRead(serverType version.ServerType, consistency string) bool {
80 return consistency != ConsistencyTypeSnapshot || serverType != version.ServerTypeTiDB

Callers 2

getNumericIndexFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected