ddl: unlock schema version mutex properly (#50327)

close pingcap/tidb#50309
This commit is contained in:
tangenta
2024-01-11 18:15:32 +08:00
committed by GitHub
parent 22d2f6ddcf
commit e35bb6ded9

View File

@ -946,6 +946,7 @@ func (w *worker) HandleDDLJobTable(d *ddlCtx, job *model.Job) (int64, error) {
}
if err = w.checkOwnerBeforeCommit(); err != nil {
d.unlockSchemaVersion(job.ID)
return 0, err
}