]> Sergey Matveev's repositories - public-inbox.git/commit
extsearchidx: enforce -index before -extindex
authorEric Wong <e@80x24.org>
Wed, 9 Dec 2020 09:25:12 +0000 (09:25 +0000)
committerEric Wong <e@80x24.org>
Thu, 10 Dec 2020 06:39:39 +0000 (06:39 +0000)
commit02b2fcc46f364b51ca8434316c10eff41593b15e
treecd3e9642011b36018b3a22d232115368b3bd086d
parentabf5f024af0a78f27b132772838ed1189e2ba75b
extsearchidx: enforce -index before -extindex

We cannot set xref3 data without the `xnum' column to
tie it to the per-inbox over.sqlite3 DB.  So ensure we don't
read brand-new history that only exists in git, but instead
rely on last_commit and last_xap15-$EPOCH metadata in msgmap
to decide how far we can index.

Before this change, it was possible to miss messages in
the extindex if -index did not run (which will be fixable by
upcoming --reindex support in -extindex).
lib/PublicInbox/ExtSearchIdx.pm
lib/PublicInbox/V2Writable.pm
t/extsearch.t