From 97c6b564fd79e47ae6fca8de273c2aeaf2f5bea5 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sat, 5 Jan 2019 10:41:15 +0000 Subject: filter/rubylang: fix SQLite DB lifetime problems Clearly the AltId stuff was never tested for v2. Ensure this tricky filter (which reuses Msgmap to avoid introducing new serial numbers) doesn't trigger deadlocks SQLite due to opening a DB for writing multiple times. I went through several iterations of this change before going with this one, which is the least intrusive I could fine. --- script/public-inbox-mda | 1 + 1 file changed, 1 insertion(+) (limited to 'script/public-inbox-mda') diff --git a/script/public-inbox-mda b/script/public-inbox-mda index 183b915d..7486059d 100755 --- a/script/public-inbox-mda +++ b/script/public-inbox-mda @@ -81,6 +81,7 @@ if (ref($ret) && $ret->isa('Email::MIME')) { # filter altered message $! = 65; # EX_DATAERR 5.6.0 data format error die $filter->err, "\n"; } # else { accept +$filter = undef; PublicInbox::MDA->set_list_headers($mime, $dst); my $im = $dst->importer(0); -- cgit v1.2.3-24-ge0c7