r49085 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r49084‎ | r49085 | r49086 >
Date:15:55, 31 March 2009
Author:aaron
Status:ok
Tags:
Comment:
Removed unneeded NS_MAIN special case for index usage
Modified paths:
  • /trunk/phase3/includes/specials/SpecialRecentchanges.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/specials/SpecialRecentchanges.php
@@ -306,7 +306,7 @@
307307 // Is there either one namespace selected or excluded?
308308 // Tag filtering also has a better index.
309309 // Also, if this is "all" or main namespace, just use timestamp index.
310 - if( is_null($namespace) || $invert || $namespace == NS_MAIN || $opts['tagfilter'] ) {
 310+ if( is_null($namespace) || $invert || $opts['tagfilter'] ) {
311311 $res = $dbr->select( $tables, '*', $conds, __METHOD__,
312312 array( 'ORDER BY' => 'rc_timestamp DESC', 'LIMIT' => $limit ) +
313313 $query_options,

Status & tagging log