r35840 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r35839‎ | r35840 | r35841 >
Date:01:47, 4 June 2008
Author:tstarling
Status:old
Tags:
Comment:
Special-case debugging hack
Modified paths:
  • /trunk/phase3/maintenance/getSlaveServer.php (modified) (history)

Diff [purge]

Index: trunk/phase3/maintenance/getSlaveServer.php
@@ -6,6 +6,12 @@
77
88 require_once( dirname(__FILE__).'/commandLine.inc' );
99
 10+if ( $wgAllDBsAreLocalhost ) {
 11+ # Can't fool the backup script
 12+ print "localhost\n";
 13+ exit;
 14+}
 15+
1016 if( isset( $options['group'] ) ) {
1117 $db = wfGetDB( DB_SLAVE, $options['group'] );
1218 $host = $db->getServer();

Status & tagging log