diff options
author | Eric Wong <e@yhbt.net> | 2020-07-18 06:36:32 +0000 |
---|---|---|
committer | Eric Wong <e@yhbt.net> | 2020-07-18 23:58:08 +0000 |
commit | 0ad076b1943bf7c65868d1db3cef4bd0ea1ef49a (patch) | |
tree | a34e119790fd3d9015f2fbd58d865ebe1769f5e3 /t/msgmap.t | |
parent | 340652d9833d9b7de4724a721e7014bfed262ccf (diff) | |
download | public-inbox-0ad076b1943bf7c65868d1db3cef4bd0ea1ef49a.tar.gz |
Noticed while reindexing a largish v2 inbox in parallel on an SSD which required checkpointing and respawning shard workers. Fixes: f06e84220e5566e7 ("over+msgmap: do not store filename after DBI->connect")
Diffstat (limited to 't/msgmap.t')
-rw-r--r-- | t/msgmap.t | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -64,4 +64,10 @@ my $tmp = $d->tmp_clone; is_deeply([$d->minmax], [$tmp->minmax], 'Cloned temporary DB matches'); ok($tmp->mid_delete('spam@2'), 'temporary DB is writable'); +is(eval { + $tmp->atfork_prepare; + $tmp->atfork_parent; + 'ok' +}, 'ok', 'atfork_* work on tmp_clone'); + done_testing(); |