]> Sergey Matveev's repositories - public-inbox.git/commitdiff
xcpdb: don't warn on --jobs != --reshard
authorEric Wong <e@80x24.org>
Sun, 16 Jun 2019 01:32:01 +0000 (01:32 +0000)
committerEric Wong <e@80x24.org>
Sun, 16 Jun 2019 01:32:01 +0000 (01:32 +0000)
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

index 29388ad6ddd10b7f352f143c51d732b690291c8c..6e710cd59794f485faefd9973b3f1f0818da3489 100644 (file)
@@ -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";
                                }