From 75b5402ed1e989cd63f4f3ce4237cdad908e3984 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Wed, 12 Aug 2020 09:17:18 +0000 Subject: xcpdb: wire up new index options and --help --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. --- lib/PublicInbox/Xapcmd.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib') 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); } } -- cgit v1.2.3-24-ge0c7