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-mda | |
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-mda')
-rwxr-xr-x | public-inbox-mda | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/public-inbox-mda b/public-inbox-mda index 46a24a14..a3c959ac 100755 --- a/public-inbox-mda +++ b/public-inbox-mda @@ -89,10 +89,8 @@ sub search_index_sync { my ($git_dir) = @_; 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; }; } |