]> source.dussan.org Git - gitea.git/commit
Use global lock instead of NewExclusivePool to allow distributed lock between multipl...
authorLunny Xiao <xiaolunwen@gmail.com>
Fri, 6 Sep 2024 10:12:41 +0000 (18:12 +0800)
committerGitHub <noreply@github.com>
Fri, 6 Sep 2024 10:12:41 +0000 (10:12 +0000)
commit2da2000413e0fd4739872e067a462a14f1dc6f8e
treedc8cb5776cf7386059c1a6c3e96df5e805965ebc
parenta5818470fe62677d8859b590b2d80b98fe23d098
Use global lock instead of NewExclusivePool to allow distributed lock between multiple Gitea instances (#31813)

Replace #26486
Fix #19620

---------

Co-authored-by: Jason Song <i@wolfogre.com>
13 files changed:
assets/go-licenses.json
custom/conf/app.example.ini
modules/globallock/globallock.go
modules/setting/gloabl_lock.go [new file with mode: 0644]
modules/setting/global_lock_test.go [new file with mode: 0644]
modules/setting/setting.go
modules/sync/exclusive_pool.go [deleted file]
services/pull/check.go
services/pull/merge.go
services/pull/pull.go
services/pull/update.go
services/repository/transfer.go
services/wiki/wiki.go