From a0afd11630d7f0130f04f834294224aa8e613f6b Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 28 Nov 2022 05:32:19 +0000 Subject: [PATCH] lei_mirror: run v1_done earlier on forkgroup done There's likely a circular reference somewhere which was preventing v1_done from running early. In any case, this allows v1_done to run in parallel with the pack-refs process since there's no ordering dependency between ref-packing and v1_done. --- lib/PublicInbox/LeiMirror.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/PublicInbox/LeiMirror.pm b/lib/PublicInbox/LeiMirror.pm index 2812b696..29bfcabf 100644 --- a/lib/PublicInbox/LeiMirror.pm +++ b/lib/PublicInbox/LeiMirror.pm @@ -324,6 +324,7 @@ sub fgrp_update { sub pack_dst { # packs lightweight satellite repos my ($fgrp) = @_; pack_refs($fgrp, $fgrp->{cur_dst}); + delete($fgrp->{-fini}) // die 'BUG: no {-fini}'; # call v1_done } sub pack_refs { -- 2.44.0