]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/V2Writable.pm
over: use only supported and safe SQLite APIs
[public-inbox.git] / lib / PublicInbox / V2Writable.pm
index b858dcc737a2e9a327f96823cfe2cbc6b1dc193e..a8117aaa15a109cd90e2513ca42703120ca30ab3 100644 (file)
@@ -397,7 +397,7 @@ sub checkpoint {
 # issue a write barrier to ensure all data is visible to other processes
 # and read-only ops.  Order of data importance is: git > SQLite > Xapian
 sub barrier {
-       my ($self, $fsync) = @_;
+       my ($self) = @_;
 
        if (my $im = $self->{im}) {
                $im->barrier;
@@ -416,7 +416,6 @@ sub barrier {
                $_->remote_barrier foreach @$parts;
 
                $over->barrier_wait; # wait for each Xapian partition
-               $over->commit_fsync if $fsync;
 
                # last_commit is special, don't commit these until
                # remote partitions are done: