]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/OverIdx.pm
over: simplify read-only vs read-write checking
[public-inbox.git] / lib / PublicInbox / OverIdx.pm
index 5f1007aa68767979cdc8dd0c9a2d8cd34dc886ae..a966a71000c37ab4458675095d8c79cad9fe0172 100644 (file)
@@ -20,7 +20,7 @@ use PublicInbox::Search;
 
 sub dbh_new {
        my ($self) = @_;
-       my $dbh = $self->SUPER::dbh_new;
+       my $dbh = $self->SUPER::dbh_new(1);
        $dbh->do('PRAGMA journal_mode = TRUNCATE');
        $dbh->do('PRAGMA cache_size = 80000');
        create_tables($dbh);