From: Eric Wong Date: Mon, 21 Oct 2019 19:19:00 +0000 (+0000) Subject: v2writable: move git->cleanup to the correct place X-Git-Tag: v1.2.0~17^2~1 X-Git-Url: http://www.git.stargrave.org/?p=public-inbox.git;a=commitdiff_plain;h=96a8b8832d791d53e05f235b5bc2492daab5f60a v2writable: move git->cleanup to the correct place We need to stop the git process to avoid leaking FDs to Xapian if we recurse ->index_sync on reindex. --- diff --git a/lib/PublicInbox/V2Writable.pm b/lib/PublicInbox/V2Writable.pm index 7ece6b01..33c0038d 100644 --- a/lib/PublicInbox/V2Writable.pm +++ b/lib/PublicInbox/V2Writable.pm @@ -1280,8 +1280,8 @@ sub index_sync { $self->{current_info} = "multi_mid $oid"; reindex_oid_m($self, $sync, $git, $oid); } - $git->cleanup if $git; } + $git->cleanup if $git; $self->done; if (my $nr = $sync->{nr}) {