]> Sergey Matveev's repositories - public-inbox.git/commit
v2: fix reindex skipping NNTP article numbers
authorEric Wong <e@80x24.org>
Mon, 27 May 2019 18:45:45 +0000 (18:45 +0000)
committerEric Wong <e@80x24.org>
Mon, 27 May 2019 18:48:06 +0000 (18:48 +0000)
commit1bc79688ecf6bc79951c2c6ad6b1dbff1586af3f
tree6dcf9283c2c8cb4ddd9d65bf3a1acab7fff10e02
parentf7636f7f2343d6ac134b35b447e57fa2a38feba1
v2: fix reindex skipping NNTP article numbers

`public-inbox-index --reindex' could cause NNTP article number
gaps to form when it also has to deal with new,
never-before-seen commits in mirrors running off `git fetch'.

Fix this by running two distinct invocations of ->index_sync;
once to only reindex old commits, and a second time to index
new commits.

This does not appear to be a problem on v1 at the moment,
but I'll need more time to analyze this.
lib/PublicInbox/V2Writable.pm
t/indexlevels-mirror.t