HomePhabricator

[IMPR] Reset counter when "era" changes

Description

[IMPR] Reset counter when "era" changes

This splits the main loop into two ("divide-and-conquer algorithm"):

  • The first loop scans the whole page for old threads to be archived and groups them by archive.
  • The second loop iterates the groups in order that the archive with the oldest threads goes first. This is the one the saved counter applies to. Any other group resets the counter (if it matters).

Bug: T215247
Change-Id: I2ab39a39a2692bedc0f6de57fb4d06b108ae1164

Details

Provenance
matej_suchanekAuthored on Jul 28 2020, 9:30 AM
Parents
rPWBC5112f0dfd007: [IMPR] Refactor PageArchiver's main loop
Branches
Unknown
Tags
Unknown
ChangeId
I2ab39a39a2692bedc0f6de57fb4d06b108ae1164