]> Sergey Matveev's repositories - public-inbox.git/commit
v2writable: fix epoch rollover on incremental imports
authorEric Wong <e@80x24.org>
Wed, 27 Feb 2019 20:25:36 +0000 (20:25 +0000)
committerEric Wong <e@80x24.org>
Wed, 27 Feb 2019 20:26:21 +0000 (20:26 +0000)
commit7d9b50c3df67d22a289afa31eddcc3a06ddd93cf
tree4ed8805ca693bab4bffa9627c48137e2109503f0
parent1c8b2e78042d774a199faa18679c22547b13420e
v2writable: fix epoch rollover on incremental imports

All of our internal epoch rollover calculations are done using
the estimated unpacked (and uncompressed) size of the repo.  The
importer instance needs to check that unpacked size before
selecting an epoch when an epoch already has packed data.

This bug did not impact the initial mass imports since we only
initialize the Import instance once-per-epoch and did not need
to take existing epochs into account.

Tested manually with -mda on a local clone of LKML

Reported-by: Konstantin Ryabitsev <konstantin@linuxfoundation.org>
lib/PublicInbox/V2Writable.pm