]> git.ipfire.org Git - thirdparty/public-inbox.git/commit
extmsg: fix Message-ID search for non-xap_helper users
authorEric Wong <e@80x24.org>
Tue, 21 Oct 2025 03:03:46 +0000 (03:03 +0000)
committerEric Wong <e@80x24.org>
Wed, 22 Oct 2025 19:30:47 +0000 (19:30 +0000)
commit18420b5f359def1afc569d3a42aab711cfc99acb
treee3aa1ee9e4d1f93e0b654a8a5deacc190725b2cd
parent8790c2ac38b8805602154768203f4289cba82a7e
extmsg: fix Message-ID search for non-xap_helper users

commit c3d0295bd was intended to avoid head-of-line blocking for
--xapian-helpers (-X) deployments.  Unfortunately, that broke
searches for deployments not using --xapian-helpers by causing
the ExtMsg to get queued redundantly into the event loop.  So
perform the `requeue' procedure exactly once and simplify
ExtMsg->event_step by eliminating the $sync parameter.

Fixes: c3d0295bd (www: extmsg: async partial Message-ID search, 2025-05-12)
Reported-by: Kyle Meyer <kyle@kyleam.com>
Link: https://public-inbox.org/meta/877bwva3s4.fsf@kyleam.com/
lib/PublicInbox/ExtMsg.pm
t/extmsg_event_step_regression.t [new file with mode: 0644]