Skip to content

Commit

Permalink
remove unnecessary change
Browse files Browse the repository at this point in the history
  • Loading branch information
tangenta committed Apr 28, 2022
1 parent 0691d40 commit 99a6ee4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion ddl/foreign_key.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,6 @@ func onDropForeignKey(d *ddlCtx, t *meta.Meta, job *model.Job) (ver int64, _ err
job.SchemaState = fkInfo.State
return ver, nil
default:
job.SchemaState = fkInfo.State
return ver, dbterror.ErrInvalidDDLState.GenWithStackByArgs("foreign key", fkInfo.State)
}

Expand Down
2 changes: 1 addition & 1 deletion ddl/index.go
Original file line number Diff line number Diff line change
Expand Up @@ -704,7 +704,7 @@ func onDropIndex(d *ddlCtx, t *meta.Meta, job *model.Job) (ver int64, _ error) {
job.Args = append(job.Args, indexInfo.ID, getPartitionIDs(tblInfo))
}
default:
err = dbterror.ErrInvalidDDLState.GenWithStackByArgs("index", indexInfo.State)
return ver, dbterror.ErrInvalidDDLState.GenWithStackByArgs("index", indexInfo.State)
}
job.SchemaState = indexInfo.State
return ver, errors.Trace(err)
Expand Down

0 comments on commit 99a6ee4

Please sign in to comment.