]> Sergey Matveev's repositories - public-inbox.git/commit
searchidx: fix incremental index with indexlevel=basic on v1
authorEric Wong <e@80x24.org>
Tue, 14 May 2019 02:04:43 +0000 (02:04 +0000)
committerEric Wong <e@80x24.org>
Tue, 14 May 2019 02:05:59 +0000 (02:05 +0000)
commit1b7e935ab1690e28d790d8db5af2714f13c258cc
treef3c0808f0f5855fb1b3b78d219c5c7cf666e9908
parent20759636853f59b1d59cd979e72375422de29059
searchidx: fix incremental index with indexlevel=basic on v1

We were reindexing the full history every invocation of -index
when Xapian was not used because we were incorrectly relying on
'last_commit' metadata stored in Xapian.

Rewrite the indexing logic to be less confusing while we're
at it, since we rely on `git merge-base --is-ancestor' nowadays.

Furthermore, we need to handle message removals from the
overview index correctly when Xapian is not in use.

Co-authored-by: Eric W. Biederman <ebiederm@xmission.com>
MANIFEST
lib/PublicInbox/OverIdx.pm
lib/PublicInbox/SearchIdx.pm
t/indexlevels-mirror.t [new file with mode: 0644]