Skip to content

Commit

Permalink
v16 backport: Fix closed channel panic in Online DDL cutover (#13732)
Browse files Browse the repository at this point in the history
  • Loading branch information
shlomi-noach authored Aug 8, 2023
1 parent effe392 commit 4a810e4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions go/vt/vttablet/onlineddl/executor.go
Original file line number Diff line number Diff line change
Expand Up @@ -921,6 +921,7 @@ func (e *Executor) cutOverVReplMigration(ctx context.Context, s *VReplStream) er

e.updateMigrationStage(ctx, onlineDDL.UUID, "renaming tables")
go func() {
defer close(renameCompleteChan)
_, err := renameConn.Exec(ctx, renameQuery.Query, 1, false)
renameCompleteChan <- err
}()
Expand Down

0 comments on commit 4a810e4

Please sign in to comment.