Skip to content

Commit

Permalink
Update insert_common.go
Browse files Browse the repository at this point in the history
  • Loading branch information
wjhuang2016 authored Sep 6, 2021
1 parent edd6d62 commit 780cdca
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions executor/insert_common.go
Original file line number Diff line number Diff line change
Expand Up @@ -417,6 +417,7 @@ func insertRowsFromSelect(ctx context.Context, base insertCommon) error {
rows := make([][]types.Datum, 0, chk.Capacity())

sessVars := e.ctx.GetSessionVars()
batchInsert := sessVars.BatchInsert && !sessVars.InTxn() && config.GetGlobalConfig().EnableBatchDML
batchSize := sessVars.DMLBatchSize
memUsageOfRows := int64(0)
memTracker := e.memTracker
Expand Down

0 comments on commit 780cdca

Please sign in to comment.