From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.0 required=3.0 tests=ALL_TRUSTED,AWL,BAYES_00 shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 65D901F462 for ; Sun, 16 Jun 2019 01:41:29 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH] xcpdb: don't warn on --jobs != --reshard Date: Sun, 16 Jun 2019 01:41:29 +0000 Message-Id: <20190616014129.24048-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: 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 29388ad..6e710cd 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"; } -- EW