From 96a8b8832d791d53e05f235b5bc2492daab5f60a Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 21 Oct 2019 19:19:00 +0000 Subject: [PATCH] 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. --- lib/PublicInbox/V2Writable.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}) { -- 2.44.0