From 70ac66478d492a356e261a1d92a5ec4e784b1680 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sun, 16 Jun 2019 01:32:01 +0000 Subject: 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. --- lib/PublicInbox/Admin.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"; } -- cgit v1.2.3-24-ge0c7