Negation in flag names are confusing, but trying to deviate from
the DB_NO_SYNC name used by Xapian is also confusing.
}, __PACKAGE__;
$self->{shards} = $self->count_shards || nproc_shards($opt->{creat});
my $oidx = PublicInbox::OverIdx->new("$self->{xpfx}/over.sqlite3");
- $oidx->{-no_fsync} = 1 if $opt->{-no_fsync};
+ $self->{-no_fsync} = $oidx->{-no_fsync} = 1 if !$opt->{fsync};
$self->{oidx} = $oidx;
$self
}
die "extindex `$ei_name' not configured or found\n";
}
$eidx_seen{$topdir} //=
- push(@eidx, PublicInbox::ExtSearchIdx->new($topdir));
+ push(@eidx, PublicInbox::ExtSearchIdx->new($topdir, $opt));
}
my $mods = {};
my @eidx_unconfigured;
$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;