]> Sergey Matveev's repositories - public-inbox.git/commit
extindex: flush pending reindex before unref
authorEric Wong <e@80x24.org>
Tue, 12 Oct 2021 22:44:56 +0000 (22:44 +0000)
committerEric Wong <e@80x24.org>
Wed, 13 Oct 2021 00:41:22 +0000 (00:41 +0000)
commit43ca60f56e8675967d3e72138e1f9371bd940098
tree1dafc7bcafa2f1facf300563575129a3807a623c
parent97510d7a92b4e44318d1917a54c70d536bbf46f2
extindex: flush pending reindex before unref

This prevents unnecessary message renumbering and I/O.

Without this change, there is a small window for long-running
WWW streaming requests to miss a message that was unref-ed
before reindexing.  If we expose an "All Mail" mailbox via
IMAP/JMAP, this will save client traffic.
lib/PublicInbox/ExtSearchIdx.pm