Skip to content

Commit 2a76b67

Browse files
committed
Don't use singleton connection for the swap
1 parent 884ba90 commit 2a76b67

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

go/logic/applier.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -830,7 +830,7 @@ func (this *Applier) SwapTables() error {
830830
)
831831
log.Infof("Swaping original and new table: %s", query)
832832
this.migrationContext.RenameTablesStartTime = time.Now()
833-
if _, err := sqlutils.ExecNoPrepare(this.singletonDB, query); err != nil {
833+
if _, err := sqlutils.ExecNoPrepare(this.db, query); err != nil {
834834
return err
835835
}
836836
this.migrationContext.RenameTablesEndTime = time.Now()

0 commit comments

Comments
 (0)