From 78d765a8d03967d0dfd6ce6232ffad5c89319909 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Fri, 17 Jun 2016 01:56:05 +0000 Subject: import: auto-update index when done This prevents multiple update processes from stepping over each other while called under the lock, and also allows the new -watch process to update the index iff indexing was desired. --- script/public-inbox-learn | 4 ---- 1 file changed, 4 deletions(-) (limited to 'script/public-inbox-learn') diff --git a/script/public-inbox-learn b/script/public-inbox-learn index 817fd5e9..b05ef056 100755 --- a/script/public-inbox-learn +++ b/script/public-inbox-learn @@ -84,10 +84,6 @@ foreach my $recipient (keys %dests) { $im->add($mime); } $im->done; - eval { - require PublicInbox::SearchIdx; - PublicInbox::SearchIdx->new($git_dir, 2)->index_sync; - }; } if ($err) { -- cgit v1.2.3-24-ge0c7