]> Sergey Matveev's repositories - public-inbox.git/commit
SearchIdx: Decrement regen_down even for added messages that are later deleted.
authorEric W. Biederman <ebiederm@xmission.com>
Tue, 17 Jul 2018 22:06:17 +0000 (17:06 -0500)
committerEric Wong <e@80x24.org>
Wed, 18 Jul 2018 10:15:06 +0000 (10:15 +0000)
commit6aa50771d12af52baad214923afd49417f6d8909
tree7a570ee05f6afb005a85821f3d0e5054a4df8383
parent8f5147a8860908a7dc582310681f05c016cfbb30
SearchIdx: Decrement regen_down even for added messages that are later deleted.

Decrement regen_down when visiting messages that appear in %D that we
know will later be deleted.  This ensures consistent message numbers are
generated no matter which commit number is on top.  Allowing deletes to
propagage separately from the messages they delete without causing
problems.

The v2 trees already do this and when the indexes are deleted and
rebuilt they maintain they commit numbers.

Add a v1 version of the v2reindex test to verify that reindexing is
working properly on v1 as well as v2.

Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
MANIFEST
lib/PublicInbox/SearchIdx.pm
t/v1reindex.t [new file with mode: 0644]