seems writeBufs.IndexValsBuf
in TableCommon.addIndices
is not reused.
#54698
Labels
type/enhancement
The issue or PR belongs to an enhancement.
Enhancement
See:
tidb/pkg/table/tables/tables.go
Line 1109 in a48a4a2
The
indexVals
is assigned using:=
that makes it a new variable and shadows the outside declaration.writeBufs.IndexValsBuf
is alwaysnil
and the[]types.Datum
will be allocated every time.The text was updated successfully, but these errors were encountered: