user/dev discussion of public-inbox itself
 help / color / mirror / Atom feed
* [PATCH] msgmap: tmp_clone: use MEMORY journal upon reconnect
@ 2020-08-06 10:37 Eric Wong
  0 siblings, 0 replies; only message in thread
From: Eric Wong @ 2020-08-06 10:37 UTC (permalink / raw)
  To: meta

Since reindexing releases the DB handle every indexBatchSize bytes,
we need to ensure we keep the journal in-memory when reopening
the DB.
 lib/PublicInbox/ | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/PublicInbox/ b/lib/PublicInbox/
index c85e7796..eee8d6ca 100644
--- a/lib/PublicInbox/
+++ b/lib/PublicInbox/
@@ -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 {

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-08-06 10:37 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-06 10:37 [PATCH] msgmap: tmp_clone: use MEMORY journal upon reconnect Eric Wong

user/dev discussion of public-inbox itself

This inbox may be cloned and mirrored by anyone:

	git clone --mirror
	git clone --mirror http://czquwvybam4bgbro.onion/meta
	git clone --mirror http://hjrcffqmbrq6wope.onion/meta
	git clone --mirror http://ou63pmih66umazou.onion/meta

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V1 meta meta/ \
	public-inbox-index meta

Example config snippet for mirrors.
Newsgroups are available over NNTP:
 note: .onion URLs require Tor:

code repositories for the project(s) associated with this inbox:

AGPL code for this site: git clone