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

Function hasTablePrefix

pkg/tablecodec/tablecodec.go:134–136  ·  view source on GitHub ↗
(key kv.Key)

Source from the content-addressed store, hash-verified

132}
133
134func hasTablePrefix(key kv.Key) bool {
135 return key[0] == tablePrefix[0]
136}
137
138func hasRecordPrefixSep(key kv.Key) bool {
139 return key[0] == recordPrefixSep[0] && key[1] == recordPrefixSep[1]

Callers 4

BenchmarkHasTablePrefixFunction · 0.85
initFunction · 0.85
DecodeRecordKeyFunction · 0.85
DecodeRowKeyFunction · 0.85

Calls

no outgoing calls

Tested by 1

BenchmarkHasTablePrefixFunction · 0.68