]> Sergey Matveev's repositories - public-inbox.git/commitdiff
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)
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>

No differences found