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
Unknown Object (File)
Sun, Dec 8, 8:27 AM
Unknown Object (File)
Sat, Dec 7, 4:46 PM
Unknown Object (File)
Sat, Dec 7, 2:22 PM
Unknown Object (File)
Tue, Dec 3, 10:41 AM
Unknown Object (File)
Oct 21 2024, 4:29 AM
Unknown Object (File)
Oct 19 2024, 5:13 AM
Unknown Object (File)
Sep 28 2024, 1:37 AM
Unknown Object (File)
Sep 28 2024, 1:35 AM
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