diff options
author | Eric Wong <e@yhbt.net> | 2020-08-12 09:17:18 +0000 |
---|---|---|
committer | Eric Wong <e@yhbt.net> | 2020-08-13 02:22:59 +0000 |
commit | 75b5402ed1e989cd63f4f3ce4237cdad908e3984 (patch) | |
tree | 0ef3ed169bc5732f776314cb8dd2cdf989b2b11a /lib/PublicInbox/Xapcmd.pm | |
parent | fc689933e6e181f0bed62ff21fe83ab94bdc1969 (diff) | |
download | public-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/PublicInbox/Xapcmd.pm')
-rw-r--r-- | lib/PublicInbox/Xapcmd.pm | 3 |
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); } } |