]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/Admin.pm
nntp: use msg_more as a method
[public-inbox.git] / lib / PublicInbox / Admin.pm
index 8a2f20431c1ba403bbfc6a95dbe6c9dbd443105d..6e710cd59794f485faefd9973b3f1f0818da3489 100644 (file)
@@ -204,10 +204,10 @@ sub index_inbox {
                        if ($jobs == 0) {
                                $v2w->{parallel} = 0;
                        } else {
-                               my $n = $v2w->{partitions};
-                               if ($jobs != ($n + 1)) {
+                               my $n = $v2w->{shards};
+                               if ($jobs != ($n + 1) && !$opt->{reshard}) {
                                        warn
-"Unable to respect --jobs=$jobs, inbox was created with $n partitions\n";
+"Unable to respect --jobs=$jobs, inbox was created with $n shards\n";
                                }
                        }
                }