Page MenuHomePhabricator

Fix loop in QueryIterator when row count is an exact multiple of page size
ClosedPublic

Authored by epriestley on Jun 7 2018, 7:14 PM.
Tags
None
Referenced Files
F18925100: D19479.id.diff
Sun, Nov 9, 6:23 PM
F18907065: D19479.diff
Sat, Nov 8, 9:52 PM
F18771822: D19479.diff
Oct 8 2025, 10:07 PM
F18769783: D19479.id.diff
Oct 8 2025, 9:10 AM
F18753331: D19479.id46586.diff
Oct 4 2025, 6:20 PM
F18645583: D19479.id46590.diff
Sep 19 2025, 8:07 AM
F18509662: D19479.id.diff
Sep 5 2025, 3:32 AM
F18502929: D19479.diff
Sep 4 2025, 10:44 PM
Subscribers
None

Details

Summary

Ref T13152. The pager does a bit of magic here and doesn't populate nextPageID when it knows it got an exact final page. The logic misfired in this case and sent us back to the start.

Test Plan
  • Set page size to 1 to guarantee rows were an exact multiple of page size.
  • Ran rebuild-identities (I no-op'd the actual logic to make it faster).
  • Before: looped forever.
  • After: clean exit after processing everything.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable