Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
134
func
hasTablePrefix(key kv.Key) bool {
135
return
key[0] == tablePrefix[0]
136
}
137
138
func
hasRecordPrefixSep(key kv.Key) bool {
139
return
key[0] == recordPrefixSep[0] && key[1] == recordPrefixSep[1]
Callers
4
BenchmarkHasTablePrefix
Function · 0.85
init
Function · 0.85
DecodeRecordKey
Function · 0.85
DecodeRowKey
Function · 0.85
Calls
no outgoing calls
Tested by
1
BenchmarkHasTablePrefix
Function · 0.68