diff options
author | Eric Wong <e@80x24.org> | 2015-08-17 16:49:31 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2015-08-17 17:46:56 +0000 |
commit | cc22505339e40fe45113ee39a4688070807eba58 (patch) | |
tree | 072d2d783d99e38056326b5c27043e5236ae9595 /public-inbox-learn | |
parent | c59caac2ee502dfd8b3acb1ca268c597719313f8 (diff) | |
download | public-inbox-cc22505339e40fe45113ee39a4688070807eba58.tar.gz |
There's no need to make a transaction for each message when doing incremental indexing against a git repository. While we're at it, simplify the interface for callers, too and do not auto-create the Xapian database if it was not explicitly enabled.
Diffstat (limited to 'public-inbox-learn')
-rwxr-xr-x | public-inbox-learn | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/public-inbox-learn b/public-inbox-learn index 7f525f55..bd592471 100755 --- a/public-inbox-learn +++ b/public-inbox-learn @@ -79,11 +79,9 @@ foreach my $recipient (keys %dests) { $err or eval { require PublicInbox::Search; - require PublicInbox::GitCatFile; - my $git = PublicInbox::GitCatFile->new($git_dir); umask 0022; # XXX FIXME use git config core.sharedRepository - my $s = PublicInbox::Search->new($git_dir, 1); - $s->index_sync($git); + my $s = PublicInbox::Search->new($git_dir, 2); + $s->index_sync; }; } |