Skip to content

Commit

Permalink
variable: change default for DefDMLBatchSize tidbOptInt64 call (#24697)
Browse files Browse the repository at this point in the history
  • Loading branch information
morgo authored May 19, 2021
1 parent f5a362d commit 0a1c3c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sessionctx/variable/sysvar.go
Original file line number Diff line number Diff line change
Expand Up @@ -904,7 +904,7 @@ var defaultSysVars = []*SysVar{
return nil
}},
{Scope: ScopeGlobal | ScopeSession, Name: TiDBDMLBatchSize, Value: strconv.Itoa(DefDMLBatchSize), Type: TypeUnsigned, MinValue: 0, MaxValue: math.MaxUint64, SetSession: func(s *SessionVars, val string) error {
s.DMLBatchSize = int(tidbOptInt64(val, DefOptCorrelationExpFactor))
s.DMLBatchSize = int(tidbOptInt64(val, DefDMLBatchSize))
return nil
}},
{Scope: ScopeSession, Name: TiDBCurrentTS, Value: strconv.Itoa(DefCurretTS), ReadOnly: true},
Expand Down

0 comments on commit 0a1c3c0

Please sign in to comment.