]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/Msgmap.pm
replace Xapian skeleton with SQLite overview DB
[public-inbox.git] / lib / PublicInbox / Msgmap.pm
index 128330506b151d16afe7cbde83429a06820f4891..dea957316609ffb63332098d0e994945447ca4bd 100644 (file)
@@ -39,6 +39,7 @@ sub dbh_new {
 
 sub new_file {
        my ($class, $f, $writable) = @_;
+       return if !$writable && !-r $f;
 
        my $dbh = dbh_new($f, $writable);
        my $self = bless { dbh => $dbh }, $class;