]> Sergey Matveev's repositories - public-inbox.git/commitdiff
shared_kv: remove cache_size attribute support
authorEric Wong <e@80x24.org>
Sun, 24 Oct 2021 00:20:41 +0000 (18:20 -0600)
committerEric Wong <e@80x24.org>
Sun, 24 Oct 2021 02:20:33 +0000 (02:20 +0000)
We're not using it, anywhere.

lib/PublicInbox/SharedKV.pm

index 398f4ca8dd70ef70af87ecf348689b6561c1532f..27407f8357131ef24f6388a934afae734a312528 100644 (file)
@@ -27,9 +27,6 @@ sub dbh {
                });
                my $opt = $self->{opt} // {};
                $dbh->do('PRAGMA synchronous = OFF') if !$opt->{fsync};
-               if (my $s = $opt->{cache_size}) {
-                       $dbh->do("PRAGMA cache_size = $s");
-               }
                $dbh->do('PRAGMA journal_mode = '.
                                ($opt->{journal_mode} // 'WAL'));
                $dbh->do(<<'');