r78814 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r78813‎ | r78814 | r78815 >
Date:18:08, 22 December 2010
Author:catrope
Status:ok
Tags:
Comment:
Followup r78786: make back compat mode actually work by moving up $dbr assignment
Modified paths:
  • /trunk/phase3/includes/QueryPage.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/QueryPage.php
@@ -342,6 +342,7 @@
343343 */
344344 function reallyDoQuery( $limit, $offset = false ) {
345345 $fname = get_class( $this ) . "::reallyDoQuery";
 346+ $dbr = wfGetDB( DB_SLAVE );
346347 $query = $this->getQueryInfo();
347348 $order = $this->getOrderFields();
348349 if ( $this->sortDescending() ) {
@@ -365,7 +366,6 @@
366367 $options['OFFSET'] = intval( $offset );
367368 }
368369
369 - $dbr = wfGetDB( DB_SLAVE );
370370 $res = $dbr->select( $tables, $fields, $conds, $fname,
371371 $options, $join_conds
372372 );

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r78786Merge querypage-work2 branch from trunk. The most relevant changes are:...catrope14:16, 22 December 2010

Status & tagging log