]> Sergey Matveev's repositories - public-inbox.git/blobdiff - script/public-inbox-index
check defined return value for localized slurp errors
[public-inbox.git] / script / public-inbox-index
index a17bf615a0e226266ee73f139e1d5e8d22bc99d6..0fdfddc06205cf63a64330ef3e5b375536d3674e 100755 (executable)
@@ -84,8 +84,10 @@ for my $ei_name (@$update_extindex) {
        } else {
                die "extindex `$ei_name' not configured or found\n";
        }
+       my $o = { %$opt };
+       delete $o->{indexlevel} if ($o->{indexlevel}//'') eq 'basic';
        $eidx_seen{$topdir} //=
-               push(@eidx, PublicInbox::ExtSearchIdx->new($topdir));
+               push(@eidx, PublicInbox::ExtSearchIdx->new($topdir, $o));
 }
 my $mods = {};
 my @eidx_unconfigured;
@@ -141,7 +143,6 @@ EOL
                $eidx->attach_inbox($ibx);
        }
 }
-$opt->{-no_fsync} = 1 if !$opt->{fsync};
 my $pr = $opt->{-progress};
 for my $eidx (@eidx) {
        $pr->("indexing $eidx->{topdir} ...\n") if $pr;