From 90aa00cfbd218ec7b4f8f7ca0bd6317192bb250b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20Kr=C3=BCger?= Date: Sat, 6 Nov 2010 19:29:08 +0100 Subject: [PATCH] jobd: defer gc for newly created mirror repositories MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Just like we don't want to update repositories before they are first mirrored, we don't want to gc them before the initial mirroring has finished. After all, otherwise we will probably be left with many unpacked objects which will stick around for quite some time until the next gc is run on that repository. Signed-off-by: Jan Krüger --- jobd/jobd.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jobd/jobd.pl b/jobd/jobd.pl index ffb4427..77c2757 100755 --- a/jobd/jobd.pl +++ b/jobd/jobd.pl @@ -37,7 +37,7 @@ sub update_project { } if (-e get_project_path($p).".clone_in_progress") { job_skip($job, "initial mirroring not complete yet"); - return setup_gc($job); + return; } if (my $ts = is_operation_uptodate($p, 'lastrefresh', $Girocco::Config::min_mirror_interval)) { job_skip($job, "not needed right now, last run at $ts"); -- 2.11.4.GIT