From 3713c727cda431a0dc2865a7878c13ecf9f21851 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Tue, 9 Aug 2016 00:22:52 +0000 Subject: searchidx: release Xapian FDs before spawning git log This will allow us to release and re-acquire Xapian locks due to the lack of FD_CLOEXEC on some FDs. --- lib/PublicInbox/Import.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/PublicInbox/Import.pm') diff --git a/lib/PublicInbox/Import.pm b/lib/PublicInbox/Import.pm index b3812a63..ff5b3f38 100644 --- a/lib/PublicInbox/Import.pm +++ b/lib/PublicInbox/Import.pm @@ -237,7 +237,7 @@ sub done { eval { require PublicInbox::SearchIdx; - my $s = PublicInbox::SearchIdx->new($git_dir, 2); + my $s = PublicInbox::SearchIdx->new($git_dir); $s->index_sync({ ref => $self->{ref} }); }; } -- cgit v1.2.3-24-ge0c7