about summary refs log tree commit homepage
path: root/lib/PublicInbox/Admin.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2021-07-27 10:44:29 +0000
committerEric Wong <e@80x24.org>2021-07-28 05:16:19 +0000
commit11e454643ca0a8556f972ba6954dfec3855c62e7 (patch)
tree96cf8060e7891affca4b3033b81081c90897f3af /lib/PublicInbox/Admin.pm
parent7a85c3cd6c7c0257a04343ca345cf0f23d71729c (diff)
downloadpublic-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 'lib/PublicInbox/Admin.pm')
-rw-r--r--lib/PublicInbox/Admin.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/PublicInbox/Admin.pm b/lib/PublicInbox/Admin.pm
index b21fb241..eb38dd8f 100644
--- a/lib/PublicInbox/Admin.pm
+++ b/lib/PublicInbox/Admin.pm
@@ -327,9 +327,9 @@ sub index_prepare ($$) {
         $opt->{batch_size} and
                 $env = { XAPIAN_FLUSH_THRESHOLD => '4294967295' };
 
-        for my $k (qw(sequential_shard)) {
+        for my $k (qw(sequential-shard)) {
                 my $git_key = "publicInbox.index".ucfirst($k);
-                $git_key =~ s/_([a-z])/\U$1/g;
+                $git_key =~ s/-([a-z])/\U$1/g;
                 defined(my $s = $opt->{$k} // $cfg->{lc($git_key)}) or next;
                 defined(my $v = $cfg->git_bool($s))
                                         or die "`$git_key=$s' not boolean\n";