Reduce minimum maxLagMillisecondsThrottleThreshold to 100ms

This commit is contained in:
Jonah Berquist 2016-08-26 16:44:40 -07:00
parent 2663b00e32
commit 10b222bc7b

View File

@ -324,8 +324,8 @@ func (this *MigrationContext) TimeSincePointOfInterest() time.Duration {
}
func (this *MigrationContext) SetMaxLagMillisecondsThrottleThreshold(maxLagMillisecondsThrottleThreshold int64) {
if maxLagMillisecondsThrottleThreshold < 1000 {
maxLagMillisecondsThrottleThreshold = 1000
if maxLagMillisecondsThrottleThreshold < 100 {
maxLagMillisecondsThrottleThreshold = 100
}
atomic.StoreInt64(&this.MaxLagMillisecondsThrottleThreshold, maxLagMillisecondsThrottleThreshold)
}