API: Added bkip parameter to list=blocks. This more than fixes bug 14405.
authorRoan Kattouw <catrope@users.mediawiki.org>
Thu, 19 Jun 2008 13:43:14 +0000 (13:43 +0000)
committerRoan Kattouw <catrope@users.mediawiki.org>
Thu, 19 Jun 2008 13:43:14 +0000 (13:43 +0000)
commitc6bf702b93923cfcc798acb5a742dcc350e44ee3
treecea1ffa140272a1c2e89a75b249630bf336c8939
parentb1556f51c36add996493e1300a3be7384baca0f1
API: Added bkip parameter to list=blocks. This more than fixes bug 14405.

About the database query: I know it filesorts the result set, but that shouldn't cause any trouble as the result set is always small. To be more specific: it cannot be larger than 17 rows. This is because bkip=foo only grabs (range) blocks that contain foo *in its entirety*. Therefore, in the worst case foo is a single IP and the result set will consist of a single block, a /31 range block, a /30, etc. to /16 (blocks that cross /16 , which adds up to 17 blocks (note that there's only one /N range that a /N+K range is part of).
RELEASE-NOTES
includes/api/ApiQueryBlocks.php