]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/Over.pm
index+xcpdb: support --no-sync flag
[public-inbox.git] / lib / PublicInbox / Over.pm
index e3f264564434ef477fd90c25de29b8450bebb27c..f32743c05a8a461baf0c4f5a52c983d5fecd25af 100644 (file)
@@ -40,6 +40,7 @@ sub dbh_new {
                $st = pack('dd', $st[0], $st[1]);
        } while ($st ne $self->{st} && $tries++ < 3);
        warn "W: $f: .st_dev, .st_ino unstable\n" if $st ne $self->{st};
+       $dbh->do('PRAGMA synchronous = OFF') if ($rw // 0) > 1;
        $dbh;
 }