Skip to content

Commit 9059f30

Browse files
authored
Final cleanup after InstantDDL (#1520)
* fix: move successful cleanup into func * fix: ignore linter error * fix: inline onSuccessFunc function
1 parent 801ebab commit 9059f30

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Diff for: go/logic/migrator.go

+3
Original file line numberDiff line numberDiff line change
@@ -369,6 +369,9 @@ func (this *Migrator) Migrate() (err error) {
369369
} else {
370370
this.migrationContext.Log.Infof("Attempting to execute alter with ALGORITHM=INSTANT")
371371
if err := this.applier.AttemptInstantDDL(); err == nil {
372+
if err := this.finalCleanup(); err != nil {
373+
return nil
374+
}
372375
if err := this.hooksExecutor.onSuccess(); err != nil {
373376
return err
374377
}

0 commit comments

Comments
 (0)