about summary refs log tree commit homepage
path: root/lib
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2021-05-06 01:53:36 +0000
committerEric Wong <e@80x24.org>2021-05-06 02:28:39 +0000
commitaa6ad348fea8a7affb1ecf025c297983d0e061cd (patch)
tree1c5372fcb5439187ce70c3cca508787a6b49bb7d /lib
parent8e29aa50db0147f63ba4a164dce53d2d735d0a9f (diff)
downloadpublic-inbox-aa6ad348fea8a7affb1ecf025c297983d0e061cd.tar.gz
We don't need Xapian positional info when searching
for blob pre/post-images.  Furthermore, rediff will
usually be used for a single email or at most, one
patchset.  So there's little point in parallelizing
or having multiple shards.
Diffstat (limited to 'lib')
-rw-r--r--lib/PublicInbox/LeiRediff.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/PublicInbox/LeiRediff.pm b/lib/PublicInbox/LeiRediff.pm
index deb6c3ae..3c8ebe41 100644
--- a/lib/PublicInbox/LeiRediff.pm
+++ b/lib/PublicInbox/LeiRediff.pm
@@ -239,7 +239,9 @@ sub ipc_atfork_child {
         $self->{blobs} = {}; # oidhex => filename
         $self->{rdtmp} = File::Temp->newdir('lei-rediff-XXXX', TMPDIR => 1);
         $self->{tmp_sto} = PublicInbox::LeiStore->new(
-                        "$self->{rdtmp}/tmp.store", { creat => 1 });
+                        "$self->{rdtmp}/tmp.store",
+                        { creat => { nproc => 1 }, indexlevel => 'medium' });
+        $self->{tmp_sto}->{priv_eidx}->{parallel} = 0;
         $self->{rmt} = [ $self->{tmp_sto}->search, map {
                         PublicInbox::LeiRemote->new($lei, $_)
                 } $self->{lxs}->remotes ];