MCPcopy
hub / github.com/github/gh-ost / SetDMLBatchSize

Method SetDMLBatchSize

go/base/context.go:696–704  ·  view source on GitHub ↗
(batchSize int64)

Source from the content-addressed store, hash-verified

694}
695
696func (mctx *MigrationContext) SetDMLBatchSize(batchSize int64) {
697 if batchSize < 1 {
698 batchSize = 1
699 }
700 if batchSize > MaxEventsBatchSize {
701 batchSize = MaxEventsBatchSize
702 }
703 atomic.StoreInt64(&mctx.DMLBatchSize, batchSize)
704}
705
706func (mctx *MigrationContext) SetThrottleGeneralCheckResult(checkResult *ThrottleCheckResult) *ThrottleCheckResult {
707 mctx.throttleMutex.Lock()

Callers 2

mainFunction · 0.95
applyServerCommandMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected