From 26bec934a01fc747db8b2b504ec6a270fc021656 Mon Sep 17 00:00:00 2001 From: Reedy Date: Thu, 30 Mar 2017 13:30:07 +0100 Subject: [PATCH] Add ar_ prefix back to usertext_timestamp USE INDEX This is the correct/canonical index name. For usages on mysql it will map to the unprefixed version. Bug: T154872 Change-Id: Ie2daf7b33428855ac59c85bf04a99a9bca7feba1 --- includes/api/ApiQueryDeletedrevs.php | 2 +- includes/specials/pagers/DeletedContribsPager.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/api/ApiQueryDeletedrevs.php b/includes/api/ApiQueryDeletedrevs.php index 2bb4d03efa..b68a8682c5 100644 --- a/includes/api/ApiQueryDeletedrevs.php +++ b/includes/api/ApiQueryDeletedrevs.php @@ -250,7 +250,7 @@ class ApiQueryDeletedrevs extends ApiQueryBase { $this->addOption( 'LIMIT', $limit + 1 ); $this->addOption( 'USE INDEX', - [ 'archive' => ( $mode == 'user' ? 'usertext_timestamp' : 'name_title_timestamp' ) ] + [ 'archive' => ( $mode == 'user' ? 'ar_usertext_timestamp' : 'name_title_timestamp' ) ] ); if ( $mode == 'all' ) { if ( $params['unique'] ) { diff --git a/includes/specials/pagers/DeletedContribsPager.php b/includes/specials/pagers/DeletedContribsPager.php index a1f6b84506..78e1092dc5 100644 --- a/includes/specials/pagers/DeletedContribsPager.php +++ b/includes/specials/pagers/DeletedContribsPager.php @@ -129,7 +129,7 @@ class DeletedContribsPager extends IndexPager { $condition = []; $condition['ar_user_text'] = $this->target; - $index = 'usertext_timestamp'; + $index = 'ar_usertext_timestamp'; return [ $index, $condition ]; } -- 2.20.1