From: Eric Wong Date: Sun, 16 Jun 2019 01:32:01 +0000 (+0000) Subject: xcpdb: don't warn on --jobs != --reshard X-Git-Tag: v1.2.0~164 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=70ac66478d492a356e261a1d92a5ec4e784b1680;hp=c477bdd8a80eecc319b680764edfb24bd12cb7b2;p=public-inbox.git xcpdb: don't warn on --jobs != --reshard It's slightly confusing since we dedicate one job to dealing with fast-import + SQLite indexing; and it's not worth complaining about when it happens. --- diff --git a/lib/PublicInbox/Admin.pm b/lib/PublicInbox/Admin.pm index 29388ad6..6e710cd5 100644 --- a/lib/PublicInbox/Admin.pm +++ b/lib/PublicInbox/Admin.pm @@ -205,7 +205,7 @@ sub index_inbox { $v2w->{parallel} = 0; } else { my $n = $v2w->{shards}; - if ($jobs != ($n + 1)) { + if ($jobs != ($n + 1) && !$opt->{reshard}) { warn "Unable to respect --jobs=$jobs, inbox was created with $n shards\n"; }