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/repository/transfer.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/repository/transfer.go')
-rw-r--r-- | services/repository/transfer.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/services/repository/transfer.go b/services/repository/transfer.go index 0abb03a88d..3feeb68f22 100644 --- a/services/repository/transfer.go +++ b/services/repository/transfer.go @@ -19,6 +19,7 @@ import ( ) // repoWorkingPool represents a working pool to order the parallel changes to the same repository +// TODO: use clustered lock (unique queue? or *abuse* cache) var repoWorkingPool = sync.NewExclusivePool() // TransferOwnership transfers all corresponding setting from old user to new one. |