diff options
author | Eric Wong <e@yhbt.net> | 2020-08-06 10:37:10 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2020-08-06 21:11:38 +0000 |
commit | 2bfbb5943abef7fb2d5db08f51cf498aecff3030 (patch) | |
tree | 1852979b3a0f5896fd56819d832c48fe25584c6c | |
parent | 90ea51959df8076870bd5e9efdf1e433eca9f55c (diff) | |
download | public-inbox-2bfbb5943abef7fb2d5db08f51cf498aecff3030.tar.gz |
Since reindexing releases the DB handle every indexBatchSize bytes, we need to ensure we keep the journal in-memory when reopening the DB since this is throwaway data.
-rw-r--r-- | lib/PublicInbox/Msgmap.pm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/PublicInbox/Msgmap.pm b/lib/PublicInbox/Msgmap.pm index c85e7796..eee8d6ca 100644 --- a/lib/PublicInbox/Msgmap.pm +++ b/lib/PublicInbox/Msgmap.pm @@ -248,6 +248,7 @@ sub atfork_parent { $self->{dbh} and die 'BUG: tmp_clone dbh not prepared for parent'; defined($self->{filename}) or die 'BUG: {filename} not defined'; $self->{dbh} = PublicInbox::Over::dbh_new($self, 2); + $self->{dbh}->do('PRAGMA journal_mode = MEMORY'); } sub atfork_prepare { |