mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	PullService lock via pullID (#19520)
* lock pull on git&db actions ... * add TODO notes * rename prQueue 2 prPatchCheckerQueue * fmt
This commit is contained in:
		@@ -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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user