diff options
author | Eric Wong <e@80x24.org> | 2020-11-23 07:05:58 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2020-11-24 05:03:55 +0000 |
commit | 2c012a3a2f95d9cf268bd92a61a53fc1633ba8f3 (patch) | |
tree | a1c2dadf49145b3e0c5bcf2ed499a610bbe3d501 /lib/PublicInbox | |
parent | c39e72419ad420e21633d8b5f87ebb9c2ddcded4 (diff) | |
download | public-inbox-2c012a3a2f95d9cf268bd92a61a53fc1633ba8f3.tar.gz |
We shouldn't leave "cat-file --batch" processes around when we're done with an epoch or inbox, since there could be many thousands.
Diffstat (limited to 'lib/PublicInbox')
-rw-r--r-- | lib/PublicInbox/ExtSearchIdx.pm | 1 | ||||
-rw-r--r-- | lib/PublicInbox/MiscIdx.pm | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/lib/PublicInbox/ExtSearchIdx.pm b/lib/PublicInbox/ExtSearchIdx.pm index 708f8a3e..890ac282 100644 --- a/lib/PublicInbox/ExtSearchIdx.pm +++ b/lib/PublicInbox/ExtSearchIdx.pm @@ -311,6 +311,7 @@ sub _sync_inbox ($$$) { } index_todo($self, $sync, $_) for @{delete($sync->{todo}) // []}; $self->{midx}->index_ibx($ibx); + $ibx->git->cleanup; # done with this inbox, now } sub eidx_sync { # main entry point diff --git a/lib/PublicInbox/MiscIdx.pm b/lib/PublicInbox/MiscIdx.pm index 9dcc96b7..acb49ce7 100644 --- a/lib/PublicInbox/MiscIdx.pm +++ b/lib/PublicInbox/MiscIdx.pm @@ -107,6 +107,7 @@ EOF if (my $ent = $git->manifest_entry($epoch, $desc)) { $data->{"$pfx$epoch.git"} = $ent; } + $git->cleanup; # ->modified starts cat-file --batch } } elsif (my $ent = $ibx->git->manifest_entry) { # v1 $data->{"/$ibx->{name}"} = $ent; |