diff options
author | Eric Wong <e@yhbt.net> | 2020-06-07 20:02:15 +0000 |
---|---|---|
committer | Eric Wong <e@yhbt.net> | 2020-06-08 08:07:40 +0000 |
commit | 8722adec7acac538c1cb92de6d53002a4e4e33b8 (patch) | |
tree | db046fdc511167345fba76e39c6a6f739e4de048 /t/xcpdb-reshard.t | |
parent | 5df08b6cd4931e87c1cf676014256d00e3cdfc2c (diff) | |
download | public-inbox-8722adec7acac538c1cb92de6d53002a4e4e33b8.tar.gz |
InboxWritable should only set $v2w->{parallel} if the $parallel flag is defined to 0 or 1. We want indexing a new inbox to utilize SMP, just like --reindex. -index once again allows -j0/--jobs=0 to force single-process use, and we'll be ensuring that works in tests to maintain performance on small systems. Fixes: 61a2fff5b34a3e32 ("admin: move index_inbox over")
Diffstat (limited to 't/xcpdb-reshard.t')
-rw-r--r-- | t/xcpdb-reshard.t | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/t/xcpdb-reshard.t b/t/xcpdb-reshard.t index 70012cc6..1835fa62 100644 --- a/t/xcpdb-reshard.t +++ b/t/xcpdb-reshard.t @@ -30,7 +30,7 @@ my $ibx = PublicInbox::Inbox->new({ my @xcpdb = qw(-xcpdb -q); my $nproc = 8; my $ndoc = 13; -my $im = PublicInbox::InboxWritable->new($ibx, {nproc => $nproc})->importer(1); +my $im = PublicInbox::InboxWritable->new($ibx, {nproc => $nproc})->importer; for my $i (1..$ndoc) { $mime->header_set('Message-ID', "<m$i\@example.com>"); ok($im->add($mime), "message $i added"); |