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

Method SetChunkSize

go/base/context.go:686–694  ·  view source on GitHub ↗
(chunkSize int64)

Source from the content-addressed store, hash-verified

684}
685
686func (mctx *MigrationContext) SetChunkSize(chunkSize int64) {
687 if chunkSize < 10 {
688 chunkSize = 10
689 }
690 if chunkSize > 100000 {
691 chunkSize = 100000
692 }
693 atomic.StoreInt64(&mctx.ChunkSize, chunkSize)
694}
695
696func (mctx *MigrationContext) SetDMLBatchSize(batchSize int64) {
697 if batchSize < 1 {

Callers 2

mainFunction · 0.95
applyServerCommandMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected