Skip to content

Commit

Permalink
address comment
Browse files Browse the repository at this point in the history
  • Loading branch information
tangenta committed Jan 29, 2023
1 parent 8629d5c commit 2cfcafa
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ddl/index.go
Original file line number Diff line number Diff line change
Expand Up @@ -791,12 +791,12 @@ func doReorgWorkForCreateIndexMultiSchema(w *worker, d *ddlCtx, t *meta.Meta, jo
done, ver, err = doReorgWorkForCreateIndex(w, d, t, job, tbl, indexInfo)
if done {
job.MarkNonRevertible()
if err == nil {
ver, err = updateVersionAndTableInfo(d, t, job, tbl.Meta(), true)
return true, ver, err
}
}
// We need another round to wait for all the others sub-jobs to finish.
if err == nil {
ver, err = updateVersionAndTableInfo(d, t, job, tbl.Meta(), true)
return false, ver, err
}
return false, ver, err
}
return true, ver, err
Expand Down

0 comments on commit 2cfcafa

Please sign in to comment.