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

Method SetMaxLagMillisecondsThrottleThreshold

go/base/context.go:679–684  ·  view source on GitHub ↗
(maxLagMillisecondsThrottleThreshold int64)

Source from the content-addressed store, hash-verified

677}
678
679func (mctx *MigrationContext) SetMaxLagMillisecondsThrottleThreshold(maxLagMillisecondsThrottleThreshold int64) {
680 if maxLagMillisecondsThrottleThreshold < 100 {
681 maxLagMillisecondsThrottleThreshold = 100
682 }
683 atomic.StoreInt64(&mctx.MaxLagMillisecondsThrottleThreshold, maxLagMillisecondsThrottleThreshold)
684}
685
686func (mctx *MigrationContext) SetChunkSize(chunkSize int64) {
687 if chunkSize < 10 {

Callers 2

mainFunction · 0.95
applyServerCommandMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected