]> Sergey Matveev's repositories - public-inbox.git/commit
extindex: --gc doesn't touch ghost entries
authorEric Wong <e@80x24.org>
Sun, 10 Oct 2021 14:25:16 +0000 (14:25 +0000)
committerEric Wong <e@80x24.org>
Sun, 10 Oct 2021 23:29:54 +0000 (23:29 +0000)
commit341af725ce7ca711e7e5906138459854a3101309
treeab3e4185f5d34db9c18491ffba4cb2fc7edf5768
parent9bc14f521223d63697a2f13986c71f4b0226e21b
extindex: --gc doesn't touch ghost entries

We were deleting ghost entries, this was usually harmless since
other messages could fill-in-the-blanks, but could cause
misthreading in odd cases where a big chunk of a thread is
missing and the latest messages only referenced ghosts.

We'll also save some cycles when scanning Xapian shards since
docids won't be <= 0.
lib/PublicInbox/ExtSearchIdx.pm