Files
Gitea/models
a4cad57174 fix(repo): avoid deadlock when updating language stats concurrently (#40167) (#40202)
Backport #40167 by @perfectra1n

The `repo_stats_update` queue only deduplicates waiting items, so
several workers can index the same repository at once, then
`UpdateLanguageStats` can lead to transaction deadlock.

Use a global lock to avoid concurrent updates, and also helps
https://github.com/go-gitea/gitea/pull/39342 to avoid duplicate updates.

Co-authored-by: Jon Fuller <jonfuller2012@gmail.com>
Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2026-11-03 17:02:11 +00:00
..
2026-08-26 19:32:44 +00:00
2026-09-26 17:38:42 +00:00