MCPcopy Index your code
hub / github.com/pingcap/tidb / appendTableRecordPrefix

Function appendTableRecordPrefix

pkg/tablecodec/tablecodec.go:1121–1126  ·  view source on GitHub ↗

appendTableRecordPrefix appends table record prefix "t[tableID]_r".

(buf []byte, tableID int64)

Source from the content-addressed store, hash-verified

1119
1120// appendTableRecordPrefix appends table record prefix "t[tableID]_r".
1121func appendTableRecordPrefix(buf []byte, tableID int64) []byte {
1122 buf = append(buf, tablePrefix...)
1123 buf = codec.EncodeInt(buf, tableID)
1124 buf = append(buf, recordPrefixSep...)
1125 return buf
1126}
1127
1128// appendTableIndexPrefix appends table index prefix "t[tableID]_i".
1129func appendTableIndexPrefix(buf []byte, tableID int64) []byte {

Callers 2

EncodeRowKeyFunction · 0.85
GenTableRecordPrefixFunction · 0.85

Calls 1

EncodeIntFunction · 0.92

Tested by

no test coverage detected