]> Sergey Matveev's repositories - public-inbox.git/commit
extindex: avoid invalid blobs after unref
authorEric Wong <e@80x24.org>
Mon, 11 Oct 2021 08:06:20 +0000 (08:06 +0000)
committerEric Wong <e@80x24.org>
Tue, 12 Oct 2021 03:40:44 +0000 (03:40 +0000)
commited0167d2a851b4f5128f57ad60309a0b76e62cfa
tree7d5562ff023f007d679615bf393da0c631ba6b7a
parentab257671a4112044582a333cdb50cc9067adab14
extindex: avoid invalid blobs after unref

When unref-ing a blob from xref3, make sure the "preferred"
smsg->{blob} doesn't point to the blob we just unrefed.  This
is necessary because we periodically checkpoint our extindex
process to allow -watch and -mda processes to run.

This also gets rid of a lot of redundant code for ->remove_xref3,
since it's all handled in ExtSearchIdx, now.
lib/PublicInbox/ExtSearchIdx.pm
lib/PublicInbox/OverIdx.pm
t/extsearch.t
t/over.t