Skip to content

Commit

Permalink
Linting
Browse files Browse the repository at this point in the history
  • Loading branch information
mjonss committed Sep 13, 2023
1 parent 674e184 commit 8aeb695
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cdc/entry/schema/snapshot.go
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ func (s *Snapshot) DoHandleDDL(job *timodel.Job) error {
return errors.Trace(err)
}
case timodel.ActionRemovePartitioning, timodel.ActionAlterTablePartitioning:
err := s.inner.alterPartitioning(job, job.BinlogInfo.FinishedTS)
err := s.inner.alterPartitioning(job)
if err != nil {
return errors.Trace(err)
}
Expand Down Expand Up @@ -1011,7 +1011,7 @@ func (s *snapshot) exchangePartition(targetTable *model.TableInfo, currentTS uin
}

// alterPartitioning changes the table id and updates the TableInfo (including the partitioning info)
func (s *snapshot) alterPartitioning(job *timodel.Job, currentTS uint64) error {
func (s *snapshot) alterPartitioning(job *timodel.Job) error {
// first drop the table (will work with both partitioned and non-partitioned tables
err := s.dropTable(job.TableID, job.BinlogInfo.FinishedTS)
if err != nil {
Expand Down

0 comments on commit 8aeb695

Please sign in to comment.