]> Sergey Matveev's repositories - public-inbox.git/commit
convert: preserve highwater mark from v1 msgmap
authorEric Wong <e@yhbt.net>
Thu, 30 Jan 2020 07:51:06 +0000 (07:51 +0000)
committerEric Wong <e@yhbt.net>
Fri, 31 Jan 2020 23:00:15 +0000 (23:00 +0000)
commiteea47b676127bcdba34fe0c1269b7324dd58d479
treed6ea257567da01e10acab963455f44e61334c78a
parent31cb75037a757c9388f74283a8b1ecb7c5b65f24
convert: preserve highwater mark from v1 msgmap

If we're reusing the msgmap from a v1 inbox, we also need to
ensure the highwater mark doesn't get doubled in the v1->v2
conversion by internally triggering the equivalent of
"--reindex" on a fresh v2 inbox.

This was needed to convert an indexed v1 inbox which featured
messages with multiple Message-IDs in it.  Fresh, unindexed
clones of v1 inboxes would not have been affected by this.
script/public-inbox-convert
t/convert-compact.t