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

Method SetNiceRatio

go/base/context.go:802–813  ·  view source on GitHub ↗
(newRatio float64)

Source from the content-addressed store, hash-verified

800}
801
802func (mctx *MigrationContext) SetNiceRatio(newRatio float64) {
803 if newRatio < 0.0 {
804 newRatio = 0.0
805 }
806 if newRatio > 100.0 {
807 newRatio = 100.0
808 }
809
810 mctx.throttleMutex.Lock()
811 defer mctx.throttleMutex.Unlock()
812 mctx.niceRatio = newRatio
813}
814
815func (mctx *MigrationContext) GetRecentBinlogCoordinates() mysql.BinlogCoordinates {
816 mctx.throttleMutex.Lock()

Callers 2

mainFunction · 0.95
applyServerCommandMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected