about summary refs log tree commit homepage
path: root/lib/PublicInbox/LeiXSearch.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2021-04-24 22:42:59 +0000
committerEric Wong <e@80x24.org>2021-04-24 19:00:41 -0400
commitcf2265059f7cc6187fd35bad50fa7febe8facac1 (patch)
tree61a0716cd1b2a7a1431fe6494ef620d912cbbf63 /lib/PublicInbox/LeiXSearch.pm
parentb437cc7f5ad2712d9064c691c5946be80a73eedb (diff)
downloadpublic-inbox-cf2265059f7cc6187fd35bad50fa7febe8facac1.tar.gz
lei_saved_search: avoid reentrancy in ->is_dup
Use a separate git process when calling xoids_for to prevent
reentrancy in ->is_dup.  Reentrancy happens since LeiToMail will
call ->is_dup when inside callbacks when writing mail.

This fixes --dedupe=mid test failures in t/lei-q-save.t

I could only reproduce this consistently on a uniprocessor VM.
"schedtool -a 0x1 -e ..." could not reproduce the problem on
2 and 4-core systems.
Diffstat (limited to 'lib/PublicInbox/LeiXSearch.pm')
0 files changed, 0 insertions, 0 deletions