about summary refs log tree commit homepage
path: root/lib/PublicInbox/V2Writable.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/V2Writable.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/V2Writable.pm')
-rw-r--r--lib/PublicInbox/V2Writable.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/PublicInbox/V2Writable.pm b/lib/PublicInbox/V2Writable.pm
index 4c1accbb..025487d2 100644
--- a/lib/PublicInbox/V2Writable.pm
+++ b/lib/PublicInbox/V2Writable.pm
@@ -1279,7 +1279,7 @@ sub index_todo ($$$) {
 
 sub xapian_only {
         my ($self, $opt, $sync, $art_beg) = @_;
-        my $seq = $opt->{sequential_shard};
+        my $seq = $opt->{'sequential-shard'};
         $art_beg //= 0;
         local $self->{parallel} = 0 if $seq;
         $self->idx_init($opt); # acquire lock
@@ -1329,7 +1329,7 @@ sub index_sync {
         }
 
         my $pr = $opt->{-progress};
-        my $seq = $opt->{sequential_shard};
+        my $seq = $opt->{'sequential-shard'};
         my $art_beg; # the NNTP article number we start xapian_only at
         my $idxlevel = $self->{ibx}->{indexlevel};
         local $self->{ibx}->{indexlevel} = 'basic' if $seq;