We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 35752c9 + 5b20122 commit 45625a6Copy full SHA for 45625a6
go/logic/migrator.go
@@ -1177,10 +1177,12 @@ func (this *Migrator) finalCleanup() error {
1177
return err
1178
}
1179
if this.migrationContext.OkToDropTable && !this.migrationContext.TestOnReplica {
1180
- dropTableFunc := func() error {
1181
- return this.applier.dropTable(this.migrationContext.GetOldTableName())
+ if err := this.retryOperation(this.applier.DropOldTable); err != nil {
+ return err
1182
1183
- if err := this.retryOperation(dropTableFunc); err != nil {
+ }
1184
+ if this.migrationContext.Noop {
1185
+ if err := this.retryOperation(this.applier.DropGhostTable); err != nil {
1186
1187
1188
0 commit comments