(newRatio float64)
| 800 | } |
| 801 | |
| 802 | func (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 | |
| 815 | func (mctx *MigrationContext) GetRecentBinlogCoordinates() mysql.BinlogCoordinates { |
| 816 | mctx.throttleMutex.Lock() |
no outgoing calls
no test coverage detected