Skip to content

Commit

Permalink
fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
tiancaiamao committed Jan 17, 2019
1 parent 3611121 commit 1402ce1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ddl/partition.go
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,6 @@ func onTruncateTablePartition(t *meta.Meta, job *model.Job) (int64, error) {
}
tblInfo, err := getTableInfo(t, job, job.SchemaID)
if err != nil {
job.State = model.JobStateCancelled
return ver, errors.Trace(err)
}
pi := tblInfo.GetPartitionInfo()
Expand All @@ -372,7 +371,7 @@ func onTruncateTablePartition(t *meta.Meta, job *model.Job) (int64, error) {
}
if !find {
job.State = model.JobStateCancelled
return ver, table.ErrUnknownPartition.GenWithStackByArgs("drop?", tblInfo.Name.O)
return ver, errUnknownPartition.GenWithStackByArgs("drop?", tblInfo.Name.O)
}

ver, err = updateVersionAndTableInfo(t, job, tblInfo, true)
Expand Down

0 comments on commit 1402ce1

Please sign in to comment.