]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/ExtSearchIdx.pm
index: fix --no-fsync flag propagation to extindex
[public-inbox.git] / lib / PublicInbox / ExtSearchIdx.pm
index 3f197973c9fcb612b3f3f4db25a0d2be50bd94e0..e7fdae48ed79ac4f9eecdd14caac8cf8ea98976d 100644 (file)
@@ -54,7 +54,7 @@ sub new {
        }, __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
 }