]> Sergey Matveev's repositories - public-inbox.git/commit
lei_saved_search: avoid reentrancy in ->is_dup
authorEric Wong <e@80x24.org>
Sat, 24 Apr 2021 22:42:59 +0000 (22:42 +0000)
committerEric Wong <e@80x24.org>
Sat, 24 Apr 2021 23:00:41 +0000 (19:00 -0400)
commitcf2265059f7cc6187fd35bad50fa7febe8facac1
tree61a0716cd1b2a7a1431fe6494ef620d912cbbf63
parentb437cc7f5ad2712d9064c691c5946be80a73eedb
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.
lib/PublicInbox/LeiSavedSearch.pm