File tree Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Original file line number Diff line number Diff line change @@ -364,7 +364,7 @@ func (this *Migrator) Migrate() (err error) {
364
364
// Attempt to do this if AttemptInstantDDL is set.
365
365
if this .migrationContext .AttemptInstantDDL {
366
366
this .migrationContext .Log .Infof ("Attempting to execute alter with ALGORITHM=INSTANT" )
367
- if err := this .attemptInstantDDL (); err == nil {
367
+ if err := this .applier . AttemptInstantDDL (); err == nil {
368
368
this .migrationContext .Log .Infof ("Success! table %s.%s migrated instantly" , sql .EscapeName (this .migrationContext .DatabaseName ), sql .EscapeName (this .migrationContext .OriginalTableName ))
369
369
return nil
370
370
} else {
@@ -745,13 +745,6 @@ func (this *Migrator) initiateServer() (err error) {
745
745
return nil
746
746
}
747
747
748
- // attemptInstantDDL tries to apply the DDL statement directly to the table
749
- // using a ALGORITHM=INSTANT assertion. If this fails, it will return an error,
750
- // in which case the original algorithm should be used.
751
- func (this * Migrator ) attemptInstantDDL () (err error ) {
752
- return this .applier .AttemptInstantDDL ()
753
- }
754
-
755
748
// initiateInspector connects, validates and inspects the "inspector" server.
756
749
// The "inspector" server is typically a replica; it is where we issue some
757
750
// queries such as:
You can’t perform that action at this time.
0 commit comments