diff options
author | 6543 <6543@obermui.de> | 2022-05-04 18:06:23 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-04 18:06:23 +0200 |
commit | f034ee6cf0ab0806ef0b8edb5f38e6a5c37f2f7c (patch) | |
tree | 1aad4175bafd7907895c38c1e163220e2692f201 /services/pull/update.go | |
parent | e933f314268e41477c85e44a255667c02b19f231 (diff) | |
download | gitea-f034ee6cf0ab0806ef0b8edb5f38e6a5c37f2f7c.tar.gz gitea-f034ee6cf0ab0806ef0b8edb5f38e6a5c37f2f7c.zip |
PullService lock via pullID (#19520)
* lock pull on git&db actions ...
* add TODO notes
* rename prQueue 2 prPatchCheckerQueue
* fmt
Diffstat (limited to 'services/pull/update.go')
-rw-r--r-- | services/pull/update.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/services/pull/update.go b/services/pull/update.go index 08ff1cedfc..08967b59b3 100644 --- a/services/pull/update.go +++ b/services/pull/update.go @@ -23,6 +23,9 @@ func Update(ctx context.Context, pull *models.PullRequest, doer *user_model.User style repo_model.MergeStyle ) + pullWorkingPool.CheckIn(fmt.Sprint(pull.ID)) + defer pullWorkingPool.CheckOut(fmt.Sprint(pull.ID)) + if rebase { pr = pull style = repo_model.MergeStyleRebaseUpdate |