Skip to content

Commit

Permalink
fixed else case
Browse files Browse the repository at this point in the history
  • Loading branch information
mjonss committed Aug 28, 2024
1 parent 71fa5ad commit 3e4e738
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/ddl/column.go
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ func (w *worker) updatePhysicalTableRow(t table.Table, reorgInfo *reorgInfo) err
case model.ActionReorganizePartition,
model.ActionRemovePartitioning,
model.ActionAlterTablePartitioning:
// Expected
// Expected
case model.ActionModifyColumn:
workType = typeUpdateColumnWorker
default:
Expand Down
2 changes: 1 addition & 1 deletion pkg/ddl/index.go
Original file line number Diff line number Diff line change
Expand Up @@ -2257,7 +2257,7 @@ func getNextPartitionInfo(reorg *reorgInfo, t table.PartitionedTable, currPhysic
pid, err = findNextNonTouchedPartitionID(currPhysicalTableID, pi)
}
}
} else if bytes.Equal(reorg.currElement.TypeKey, meta.ColumnElementKey) {
} else if len(pi.DroppingDefinitions) == 0 {
// case 5
pid, err = findNextPartitionID(currPhysicalTableID, pi.Definitions)
} else {
Expand Down

0 comments on commit 3e4e738

Please sign in to comment.