]> Sergey Matveev's repositories - public-inbox.git/commitdiff
lei_mirror: run v1_done earlier on forkgroup done
authorEric Wong <e@80x24.org>
Mon, 28 Nov 2022 05:32:19 +0000 (05:32 +0000)
committerEric Wong <e@80x24.org>
Mon, 28 Nov 2022 23:38:58 +0000 (23:38 +0000)
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

index 2812b69622deab06a09a126fd21aff80657593b4..29bfcabf88efe31d1987b37324c0da6c2b18003a 100644 (file)
@@ -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 {