r71203 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r71202‎ | r71203 | r71204 >
Date:14:17, 17 August 2010
Author:maxsem
Status:ok (Comments)
Tags:
Comment:
Use the same connection for updates everywhere. Hopefully, this ugly code will not survive for long anyway
Modified paths:
  • /trunk/phase3/maintenance/updaters.inc (modified) (history)

Diff [purge]

Index: trunk/phase3/maintenance/updaters.inc
@@ -33,8 +33,8 @@
3434 # Obviously, only use this for updates that occur after the updatelog table was
3535 # created!
3636 function update_row_exists( $key ) {
37 - $dbr = wfGetDB( DB_SLAVE );
38 - $row = $dbr->selectRow(
 37+ global $wgDatabase;
 38+ $row = $wgDatabase->selectRow(
3939 'updatelog',
4040 '1',
4141 array( 'ul_key' => $key ),

Comments

#Comment by 😂 (talk | contribs)   14:15, 27 September 2010

Luckily this is gone ;-)

Status & tagging log