about summary refs log tree commit homepage
path: root/lib
diff options
context:
space:
mode:
authorEric Wong <e@yhbt.net>2020-08-12 09:17:18 +0000
committerEric Wong <e@yhbt.net>2020-08-13 02:22:59 +0000
commit75b5402ed1e989cd63f4f3ce4237cdad908e3984 (patch)
tree0ef3ed169bc5732f776314cb8dd2cdf989b2b11a /lib
parentfc689933e6e181f0bed62ff21fe83ab94bdc1969 (diff)
downloadpublic-inbox-75b5402ed1e989cd63f4f3ce4237cdad908e3984.tar.gz
--sequential-shard also disables the copy parallelism (--jobs),
so it can be useful for systems unable to handle parallel random
I/O but still want many shards.

There was a missing "use strict", too, which is fixed.
Diffstat (limited to 'lib')
-rw-r--r--lib/PublicInbox/Xapcmd.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/PublicInbox/Xapcmd.pm b/lib/PublicInbox/Xapcmd.pm
index b6279218..46548a94 100644
--- a/lib/PublicInbox/Xapcmd.pm
+++ b/lib/PublicInbox/Xapcmd.pm
@@ -82,7 +82,8 @@ sub commit_changes ($$$$) {
                                 $im->{shards} = $n;
                         }
                 }
-
+                my $env = $opt->{-idx_env};
+                local %ENV = (%ENV, %$env) if $env;
                 PublicInbox::Admin::index_inbox($ibx, $im, $opt);
         }
 }