]> source.dussan.org Git - gitea.git/commit
Touch mirrors on even on fail to update (#19217) (#19233)
authorzeripath <art27@cantab.net>
Sun, 27 Mar 2022 21:08:28 +0000 (22:08 +0100)
committerGitHub <noreply@github.com>
Sun, 27 Mar 2022 21:08:28 +0000 (23:08 +0200)
commit2ec2935f78f827a433cc03da25e05f22684f86a6
treed4016f869e2b9ccd34c5cafa3bf479f272a88e99
parent540541caa2857971a7bb53ce1673f6eceffa99e8
Touch mirrors on even on fail to update (#19217) (#19233)

Backport #19217

If a mirror fails to be synchronised it should be pushed to the bottom of the queue
of the awaiting mirrors to be synchronised. At present if there LIMIT number of
broken mirrors they can effectively prevent all other mirrors from being synchronized
as their last_updated time will remain earlier than other mirrors.

Signed-off-by: Andrew Thornton <art27@cantab.net>
models/repo/mirror.go
services/mirror/mirror_pull.go