r70191 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r70190‎ | r70191 | r70192 >
Date:08:00, 30 July 2010
Author:siebrand
Status:ok
Tags:
Comment:
Update calling function name for MessageCache::loadFromDB() queries
Modified paths:
  • /trunk/phase3/includes/MessageCache.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/MessageCache.php
@@ -331,7 +331,7 @@
332332 $bigConds[] = 'page_len > ' . intval( $wgMaxMsgCacheEntrySize );
333333
334334 # Load titles for all oversized pages in the MediaWiki namespace
335 - $res = $dbr->select( 'page', 'page_title', $bigConds, __METHOD__ );
 335+ $res = $dbr->select( 'page', 'page_title', $bigConds, __METHOD__ . "($code)-big" );
336336 while ( $row = $dbr->fetchObject( $res ) ) {
337337 $cache[$row->page_title] = '!TOO BIG';
338338 }
@@ -345,7 +345,7 @@
346346
347347 $res = $dbr->select( array( 'page', 'revision', 'text' ),
348348 array( 'page_title', 'old_text', 'old_flags' ),
349 - $smallConds, __METHOD__. "($code)" );
 349+ $smallConds, __METHOD__ . "($code)-small" );
350350
351351 for ( $row = $dbr->fetchObject( $res ); $row; $row = $dbr->fetchObject( $res ) ) {
352352 $cache[$row->page_title] = ' ' . Revision::getRevisionText( $row );

Status & tagging log