]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/Admin.pm
Merge remote-tracking branch 'origin/email-simple-mem' into master
[public-inbox.git] / lib / PublicInbox / Admin.pm
index 5549b855bd65f66ed0766c36de8c177d011b6e28..6e710cd59794f485faefd9973b3f1f0818da3489 100644 (file)
@@ -204,8 +204,8 @@ 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 shards\n";
                                }