r46493 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r46492‎ | r46493 | r46494 >
Date:22:24, 28 January 2009
Author:aaron
Status:deferred
Tags:
Comment:
Say what table the index must be used for
Modified paths:
  • /trunk/extensions/FlaggedRevs/FlaggedRevs.hooks.php (modified) (history)

Diff [purge]

Index: trunk/extensions/FlaggedRevs/FlaggedRevs.hooks.php
@@ -1047,7 +1047,7 @@
10481048 $res = $dbr->select( array('revision','flaggedpages'), '1',
10491049 array( 'rev_user' => $user->getID(), 'fp_page_id = rev_page', 'fp_stable >= rev_id' ),
10501050 __METHOD__,
1051 - array( 'USE INDEX' => 'user_timestamp',
 1051+ array( 'USE INDEX' => array('revision' => 'user_timestamp'),
10521052 'LIMIT' => $wgFlaggedRevsAutopromote['totalCheckedEdits'] )
10531053 );
10541054 if( $dbr->numRows($res) < $wgFlaggedRevsAutopromote['totalCheckedEdits'] ) {

Status & tagging log