diff options
Diffstat (limited to 'lib/PublicInbox/V2Writable.pm')
-rw-r--r-- | lib/PublicInbox/V2Writable.pm | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/lib/PublicInbox/V2Writable.pm b/lib/PublicInbox/V2Writable.pm index 152d90ab..07319646 100644 --- a/lib/PublicInbox/V2Writable.pm +++ b/lib/PublicInbox/V2Writable.pm @@ -223,11 +223,16 @@ sub idx_init { # frequently activated. delete $ibx->{$_} foreach (qw(git mm search)); - if ($self->{parallel}) { - pipe(my ($r, $w)) or die "pipe failed: $!"; - $self->{bnote} = [ $r, $w ]; - $w->autoflush(1); - } + my $indexlevel = $ibx->{indexlevel}; + if ($indexlevel && $indexlevel eq 'basic') { + $self->{parallel} = 0; + } + + if ($self->{parallel}) { + pipe(my ($r, $w)) or die "pipe failed: $!"; + $self->{bnote} = [ $r, $w ]; + $w->autoflush(1); + } my $over = $self->{over}; $ibx->umask_prepare; |