]> source.dussan.org Git - gitea.git/commit
Fix database deadlock when update issue labels (#17649)
authorwxiaoguang <wxiaoguang@gmail.com>
Tue, 16 Nov 2021 02:21:13 +0000 (10:21 +0800)
committerGitHub <noreply@github.com>
Tue, 16 Nov 2021 02:21:13 +0000 (10:21 +0800)
commit62926032155eef30bd380a27601fe770eb00e855
tree82a177cfe4792d1732f14eb8073c79405c0fdb8f
parent3a60e0ad8969b2e248a2f78e0ce02d2645d80dfa
Fix database deadlock when update issue labels (#17649)

This fix updates issue labels one by one, and won't cause database deadlock.
In future, we can use a batch API to update all changed labels by one request.
web_src/js/features/repo-issue.js
web_src/js/features/repo-legacy.js