Skip to content

Commit

Permalink
ddl: unlock schema version mutex properly (#50327)
Browse files Browse the repository at this point in the history
close #50309
  • Loading branch information
tangenta authored Jan 11, 2024
1 parent 22d2f6d commit e35bb6d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/ddl/ddl_worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit e35bb6d

Please sign in to comment.