revert out of scope change
This commit is contained in:
parent
af99b247f9
commit
ec199f1185
@ -537,20 +537,19 @@ func (this *Migrator) cutOver() (err error) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if this.migrationContext.CutOverType == base.CutOverAtomic {
|
||||||
switch this.migrationContext.CutOverType {
|
|
||||||
case base.CutOverAtomic:
|
|
||||||
// Atomic solution: we use low timeout and multiple attempts. But for
|
// Atomic solution: we use low timeout and multiple attempts. But for
|
||||||
// each failed attempt, we throttle until replication lag is back to normal
|
// each failed attempt, we throttle until replication lag is back to normal
|
||||||
err = this.atomicCutOver()
|
err := this.atomicCutOver()
|
||||||
case base.CutOverTwoStep:
|
this.handleCutOverResult(err)
|
||||||
err = this.cutOverTwoStep()
|
return err
|
||||||
default:
|
|
||||||
return this.migrationContext.Log.Fatalf("Unknown cut-over type: %d; should never get here!", this.migrationContext.CutOverType)
|
|
||||||
}
|
}
|
||||||
|
if this.migrationContext.CutOverType == base.CutOverTwoStep {
|
||||||
this.handleCutOverResult(err)
|
err := this.cutOverTwoStep()
|
||||||
return err
|
this.handleCutOverResult(err)
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
return this.migrationContext.Log.Fatalf("Unknown cut-over type: %d; should never get here!", this.migrationContext.CutOverType)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Inject the "AllEventsUpToLockProcessed" state hint, wait for it to appear in the binary logs,
|
// Inject the "AllEventsUpToLockProcessed" state hint, wait for it to appear in the binary logs,
|
||||||
|
Loading…
Reference in New Issue
Block a user