]> Sergey Matveev's repositories - public-inbox.git/commit
msgmap: tmp_clone: use in-memory journal
authorEric Wong <e@yhbt.net>
Mon, 25 May 2020 03:30:20 +0000 (03:30 +0000)
committerEric Wong <e@yhbt.net>
Tue, 26 May 2020 10:54:39 +0000 (10:54 +0000)
commit6fb0ce0b872baa1d2d7cb7e37e6282b2cd58feb6
tree4801aa5854bfec71a8ec19271b36fa14fcc37e4d
parent8604ccc806997eadf78e2b6352b4daa0287b8bb0
msgmap: tmp_clone: use in-memory journal

This prevents $TMPDIR from being littered with *-journal files
after running the test suite.

This shouldn't cause excessive memory use since $v2w->{mm_tmp}
doesn't see big transactions.  There's no need to worry about
data loss, here,either, since this is just a temporary clone
we've even disabled fsync on.

Fixes: 78888d36fb80889f ("msgmap: use TRUNCATE for journal_mode, for now")
lib/PublicInbox/Msgmap.pm