(bug 46787) API: Fix rccontinue handling
authorBrad Jorsch <bjorsch@wikimedia.org>
Tue, 2 Apr 2013 14:01:53 +0000 (10:01 -0400)
committerBrad Jorsch <bjorsch@wikimedia.org>
Tue, 2 Apr 2013 14:27:25 +0000 (10:27 -0400)
commit661e5e5b145509df4a7c32f144293faa1998c0de
tree61d5e821e50accb0196a3f998e20c10f32858575
parent84f623b1ebb66161c59a7e64f1c3dfd5b95b0a2c
(bug 46787) API: Fix rccontinue handling

There are several bugs in Icc43b62f:
* When handing the continuation, the code checks for dir=descending when
  the actual value is dir=older.
* When the above is fixed, the continuation code assumes "ORDER BY
  rc_timestamp DESC, rc_id ASC", which would filesort.
* rc_id is not added to the ORDER BY clause anyway.

Bug: 46787
Change-Id: Ia6ebd4ea0458b8013d4ecb71954dcfbdacff2c00
includes/api/ApiQueryRecentChanges.php