diff options
author | Eric Wong <e@80x24.org> | 2021-07-27 10:44:29 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2021-07-28 05:16:19 +0000 |
commit | 11e454643ca0a8556f972ba6954dfec3855c62e7 (patch) | |
tree | 96cf8060e7891affca4b3033b81081c90897f3af /script | |
parent | 7a85c3cd6c7c0257a04343ca345cf0f23d71729c (diff) | |
download | public-inbox-11e454643ca0a8556f972ba6954dfec3855c62e7.tar.gz |
The underscore variant was never documented and maintaining the difference between the command-line and internal hash is not worth it.
Diffstat (limited to 'script')
-rwxr-xr-x | script/public-inbox-convert | 2 | ||||
-rwxr-xr-x | script/public-inbox-index | 6 | ||||
-rwxr-xr-x | script/public-inbox-xcpdb | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/script/public-inbox-convert b/script/public-inbox-convert index 3c627b79..fec6b624 100755 --- a/script/public-inbox-convert +++ b/script/public-inbox-convert @@ -38,7 +38,7 @@ GetOptions($opt, qw(jobs|j=i index! help|h), qw(verbose|v+ rethread compact|c+ fsync|sync! indexlevel|index-level|L=s max_size|max-size=s batch_size|batch-size=s - sequential_shard|sequential-shard|seq-shard + sequential-shard|seq-shard )) or die $help; if ($opt->{help}) { print $help; exit 0 }; my $old_dir = shift(@ARGV) // ''; diff --git a/script/public-inbox-index b/script/public-inbox-index index 33169bd0..0034d44c 100755 --- a/script/public-inbox-index +++ b/script/public-inbox-index @@ -40,7 +40,7 @@ GetOptions($opt, qw(verbose|v+ reindex rethread compact|c+ jobs|j=i prune fsync|sync! xapian_only|xapian-only indexlevel|index-level|L=s max_size|max-size=s batch_size|batch-size=s - sequential_shard|seq-shard|sequential-shard + sequential-shard|seq-shard no-update-extindex update-extindex|E=s@ fast-noop|F skip-docdata all help|h)) or die $help; @@ -129,12 +129,12 @@ for my $ibx (@ibxs) { defined(my $v = $cfg->git_bool($s)) or die <<EOL; publicInbox.$ibx->{name}.indexSequentialShard not boolean EOL - $ibx_opt = { %$opt, sequential_shard => $v }; + $ibx_opt = { %$opt, 'sequential-shard' => $v }; } my $nidx = PublicInbox::Admin::index_inbox($ibx, undef, $ibx_opt); last if $ibx_opt->{quit}; if (my $copt = $opt->{compact_opt}) { - local $copt->{jobs} = 0 if $ibx_opt->{sequential_shard}; + local $copt->{jobs} = 0 if $ibx_opt->{'sequential-shard'}; PublicInbox::Xapcmd::run($ibx, 'compact', $copt); } last if $ibx_opt->{quit}; diff --git a/script/public-inbox-xcpdb b/script/public-inbox-xcpdb index 3c99fde8..768dc2ba 100755 --- a/script/public-inbox-xcpdb +++ b/script/public-inbox-xcpdb @@ -30,7 +30,7 @@ my $opt = { quiet => -1, compact => 0, fsync => 1 }; GetOptions($opt, qw( fsync|sync! compact|c reshard|R=i max_size|max-size=s batch_size|batch-size=s - sequential_shard|seq-shard|sequential-shard + sequential-shard|seq-shard jobs|j=i quiet|q verbose|v blocksize|b=s no-full|n fuller|F all help|h)) or die $help; @@ -49,7 +49,7 @@ my $idx_env = PublicInbox::Admin::index_prepare($opt, $cfg); # know sizes, only doccounts $opt->{-idx_env} = $idx_env; -if ($opt->{sequential_shard} && ($opt->{jobs} // 1) > 1) { +if ($opt->{'sequential-shard'} && ($opt->{jobs} // 1) > 1) { warn "W: --jobs=$opt->{jobs} ignored with --sequential-shard\n"; $opt->{jobs} = 0; } |