diff options
author | Eric Wong <e@yhbt.net> | 2020-08-07 01:14:06 +0000 |
---|---|---|
committer | Eric Wong <e@yhbt.net> | 2020-08-07 23:45:39 +0000 |
commit | 8b1950055d51d4360e596446e5ac0f41008e357d (patch) | |
tree | 2fb3195c07e82a62e96bc3841a2f5dbd7da602d6 /lib/PublicInbox/OverIdx.pm | |
parent | 99def67b86c4d270e8cfda4d1fad418291b6f3a4 (diff) | |
download | public-inbox-8b1950055d51d4360e596446e5ac0f41008e357d.tar.gz |
We'll continue supporting `--no-sync' even if its yet-to-make it it into a release, but the term `sync' is overloaded in our codebase which may be confusing to new hackers and users. None of our our code nor dependencies issue the sync(2) syscall, either, only fsync(2) and fdatasync(2).
Diffstat (limited to 'lib/PublicInbox/OverIdx.pm')
-rw-r--r-- | lib/PublicInbox/OverIdx.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/OverIdx.pm b/lib/PublicInbox/OverIdx.pm index c8f61e01..4543bfa1 100644 --- a/lib/PublicInbox/OverIdx.pm +++ b/lib/PublicInbox/OverIdx.pm @@ -21,7 +21,7 @@ use Carp qw(croak); sub dbh_new { my ($self) = @_; - my $dbh = $self->SUPER::dbh_new($self->{-no_sync} ? 2 : 1); + my $dbh = $self->SUPER::dbh_new($self->{-no_fsync} ? 2 : 1); # TRUNCATE reduces I/O compared to the default (DELETE) # We do not use WAL since we're optimized for read-only ops, |