mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 21:28:11 +09:00 
			
		
		
		
	Fix sqlite deadlock when assigning to a PR (#5640)
* Fix sqlite deadlock when assigning to a PR Fix 5639 Signed-off-by: Andrew Thornton <art27@cantab.net> * More possible deadlocks found and fixed Signed-off-by: Andrew Thornton <art27@cantab.net>
This commit is contained in:
		| @@ -393,8 +393,12 @@ func GetOrgUsersByUserID(uid int64, all bool) ([]*OrgUser, error) { | ||||
|  | ||||
| // GetOrgUsersByOrgID returns all organization-user relations by organization ID. | ||||
| func GetOrgUsersByOrgID(orgID int64) ([]*OrgUser, error) { | ||||
| 	return getOrgUsersByOrgID(x, orgID) | ||||
| } | ||||
|  | ||||
| func getOrgUsersByOrgID(e Engine, orgID int64) ([]*OrgUser, error) { | ||||
| 	ous := make([]*OrgUser, 0, 10) | ||||
| 	err := x. | ||||
| 	err := e. | ||||
| 		Where("org_id=?", orgID). | ||||
| 		Find(&ous) | ||||
| 	return ous, err | ||||
|   | ||||
		Reference in New Issue
	
	Block a user