refreshLinks.php: Tweak exit condition in deleteLinksFromNonexistent()
authorKevin Israel <pleasestand@live.com>
Sat, 28 Feb 2015 09:54:48 +0000 (04:54 -0500)
committerKevin Israel <pleasestand@live.com>
Sat, 28 Feb 2015 09:54:48 +0000 (04:54 -0500)
commit1976b1a6fd07f58f30ebc6d32f0592efca9cbc17
tree84ce62ee7b7539cc9fd3e9936db91b6314719d6e
parentdb00239568969a41148cfdec0a77436f73fe802d
refreshLinks.php: Tweak exit condition in deleteLinksFromNonexistent()

Instead of exiting the do...while loop only once a query returns zero
rows, exit whenever fewer rows than the batch size are returned. This
could save quite a bit of time when the highest nonexistent page_id
found is a relatively low one.

Follows-up 40e300b8273d.

Bug: T44180
Change-Id: I14d2d48c2405fcc0bd05a3181ba6293caef5298c
maintenance/refreshLinks.php