]> Sergey Matveev's repositories - public-inbox.git/commit
*index: avoid per-epoch --batch-check processes
authorEric Wong <e@80x24.org>
Fri, 13 Nov 2020 11:11:42 +0000 (11:11 +0000)
committerEric Wong <e@80x24.org>
Sun, 15 Nov 2020 02:56:00 +0000 (02:56 +0000)
commit0d0b58966b2ae7e96848c2f05491a66c62531385
tree73f8fef5d277dc99612665cde115d1218eda1fb6
parent58a964c3c8a2f1699065358e4041b529d3ee531c
*index: avoid per-epoch --batch-check processes

Since all.git (v2) and ALL.git (extindex) encompass every single
epoch or indexed inbox; and is_ancestor() only uses hexadecimal
OIDs; there is no good reason to use $unit->{git} for an
epoch-local $git->check.

This prevents dozens/hundreds of --batch-check processes from
being left running after indexing and can improve locality
if size checks are being done (since that uses --batch-check,
too).

Theoretically several epochs may have conflicting OIDs, but
we're screwed in those cases, anyways, so we might as well
detect it earlier (though I'm not sure what the behavior would
be :x).
lib/PublicInbox/ExtSearchIdx.pm
lib/PublicInbox/V2Writable.pm