From: Eric Wong Date: Wed, 12 Aug 2020 09:17:17 +0000 (+0000) Subject: admin: don't warn when --jobs exceeds shards X-Git-Tag: v1.6.0~141 X-Git-Url: http://www.git.stargrave.org/?p=public-inbox.git;a=commitdiff_plain;h=fc689933e6e181f0bed62ff21fe83ab94bdc1969 admin: don't warn when --jobs exceeds shards Established tools like make(1), prove(1) and xargs(1) don't warn when the desired parallelism level can't be met, either. --- diff --git a/lib/PublicInbox/Admin.pm b/lib/PublicInbox/Admin.pm index ce720beb..d99a00b4 100644 --- a/lib/PublicInbox/Admin.pm +++ b/lib/PublicInbox/Admin.pm @@ -219,9 +219,9 @@ sub index_inbox { $v2w->{parallel} = 0; } else { my $n = $v2w->{shards}; - if ($jobs != ($n + 1) && !$opt->{reshard}) { + if ($jobs < ($n + 1) && !$opt->{reshard}) { warn -"Unable to respect --jobs=$jobs, inbox was created with $n shards\n"; +"Unable to respect --jobs=$jobs on index, inbox was created with $n shards\n"; } } }