aboutsummaryrefslogtreecommitdiffstats
path: root/services/pull/update.go
diff options
context:
space:
mode:
author6543 <6543@obermui.de>2022-05-04 18:06:23 +0200
committerGitHub <noreply@github.com>2022-05-04 18:06:23 +0200
commitf034ee6cf0ab0806ef0b8edb5f38e6a5c37f2f7c (patch)
tree1aad4175bafd7907895c38c1e163220e2692f201 /services/pull/update.go
parente933f314268e41477c85e44a255667c02b19f231 (diff)
downloadgitea-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.go3
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