]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/Admin.pm
xcpdb: don't warn on --jobs != --reshard
[public-inbox.git] / 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";
                                }