]> Sergey Matveev's repositories - public-inbox.git/commit
extindex: support `--gc' to remove dead inboxes
authorEric Wong <e@80x24.org>
Sun, 29 Nov 2020 05:09:35 +0000 (05:09 +0000)
committerEric Wong <e@80x24.org>
Sun, 29 Nov 2020 06:42:00 +0000 (06:42 +0000)
commitea885bf0f76dc1795dc771667be721ec0fed5482
tree5323da5926b6aa4c20619e2a05805f581722a389
parent33f80a367325f3dac983633cb0a59946205776c2
extindex: support `--gc' to remove dead inboxes

Inboxes may be removed or newsgroups renamed over time.
Introduce a switch to do garbage collection and eliminate stale
search and xref3 results based on inboxes which remain in the
config file.

This may also fixup stale results leftover from any bugs which
may leave stale data around.

This is also useful in case a clumsy BOFH (me :P) is swapping
between several PI_CONFIGs and accidentally indexed a bunch of
inboxes they didn't intend to.
lib/PublicInbox/ExtSearchIdx.pm
lib/PublicInbox/MiscIdx.pm
lib/PublicInbox/SearchIdx.pm
lib/PublicInbox/SearchIdxShard.pm
script/public-inbox-extindex
t/extsearch.t