Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ddl: Exchange partition rollback (#45877) #45981

Merged
Prev Previous commit
Adding back case removed by mistake.
mjonss committed Oct 9, 2023
commit 2ccffd5b98766678b910fcf6865587936f5ec78a
2 changes: 2 additions & 0 deletions infoschema/builder.go
Original file line number Diff line number Diff line change
@@ -461,6 +461,8 @@ func (b *Builder) applyTableUpdate(m *meta.Meta, diff *model.SchemaDiff) ([]int6
// Since the cluster-index feature also has similar problem, we chose to prevent DDL execution during the upgrade process to avoid this issue.
oldTableID = diff.OldTableID
newTableID = diff.TableID
case model.ActionDropTable, model.ActionDropView, model.ActionDropSequence:
oldTableID = diff.TableID
case model.ActionTruncateTable, model.ActionCreateView,
model.ActionExchangeTablePartition:
oldTableID = diff.OldTableID