]> Sergey Matveev's repositories - public-inbox.git/commit
git: *_async: support nested callback invocations
authorEric Wong <e@80x24.org>
Fri, 16 Oct 2020 06:59:33 +0000 (06:59 +0000)
committerEric Wong <e@80x24.org>
Fri, 16 Oct 2020 17:15:24 +0000 (17:15 +0000)
commit2484555ea1a2b5d0af4be5840a92605d9dbb7930
treee6a5cfab89947f9dd0a160c90572b6e6377f1157
parentaaae95b1f3be705daf815b490ec556bdf19e0538
git: *_async: support nested callback invocations

For external indices, we'll need to support nested cat_async
invocations to deduplicate cross-posted messages.

Thus we need to ensure we do not clobber the {inflight*} queues
while stepping through and ensure {cat_rbuf} is stored before
invoking callbacks.

This fixes the ->cat_async-only case, but does not yet
account for the mix of ->check_async interspersed with
->cat_async calls, yet.  More work will be needed on that
front at a later date.
lib/PublicInbox/Git.pm