Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ddl: save checkpoint with schemaVersion #1033

Merged
merged 11 commits into from
Jan 11, 2021
Prev Previous commit
Next Next commit
fix
  • Loading branch information
3pointer committed Jan 5, 2021
commit 8ad6cfd45e704cfd18f24775b62bbaa2d043f128
2 changes: 1 addition & 1 deletion drainer/syncer.go
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ func (s *Syncer) run() error {

s.enableSafeModeInitializationPhase()

err = s.schema.handlePreviousDDLJobIfNeed(s.cp.SchemaVersion())
err = s.schema.handlePreviousDDLJobIfNeed(s.cp.SchemaVersion()+1)
if err != nil {
err = errors.Annotate(err, "handlePreviousDDLJobIfNeed failed")
return err
Expand Down