]> source.dussan.org Git - gitea.git/commit
Touch mirrors on even on fail to update (#19217)
authorzeripath <art27@cantab.net>
Sun, 27 Mar 2022 14:40:17 +0000 (15:40 +0100)
committerGitHub <noreply@github.com>
Sun, 27 Mar 2022 14:40:17 +0000 (15:40 +0100)
commitd2ca021df0eccd6103b9f0f4a0b942dc95bd18b8
tree74ace2a113db00319a420cba2b2ce4ce456c0ced
parentc29fbc6d2316b8b42b37c3b379eb2297f7a93aeb
Touch mirrors on even on fail to update (#19217)

* Touch mirrors on even on fail to update

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