From 8722adec7acac538c1cb92de6d53002a4e4e33b8 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sun, 7 Jun 2020 20:02:15 +0000 Subject: index: v2: parallel by default 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") --- t/mda_filter_rubylang.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 't/mda_filter_rubylang.t') diff --git a/t/mda_filter_rubylang.t b/t/mda_filter_rubylang.t index 483fcb85..5b6bf28b 100644 --- a/t/mda_filter_rubylang.t +++ b/t/mda_filter_rubylang.t @@ -25,7 +25,7 @@ for my $v (qw(V1 V2)) { my $cmd = [ '-init', "-$v", $v, $inboxdir, "http://example.com/$v", $addr ]; ok(run_script($cmd), 'public-inbox-init'); - ok(run_script(['-index', $inboxdir]), 'public-inbox-index'); + ok(run_script([qw(-index -j0), $inboxdir]), 'public-inbox-index'); is(xsys(@cfg, "$cfgpfx.filter", 'PublicInbox::Filter::RubyLang'), 0); is(xsys(@cfg, "$cfgpfx.altid", 'serial:alerts:file=msgmap.sqlite3'), 0); -- cgit v1.2.3-24-ge0c7