r17494 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r17493‎ | r17494 | r17495 >
Date:14:59, 8 November 2006
Author:tstarling
Status:old
Tags:
Comment:
Support script for shell scripts: fetch a slave server name from the load balancer
Modified paths:
  • /trunk/phase3/maintenance/getSlaveServer.php (added) (history)

Diff [purge]

Index: trunk/phase3/maintenance/getSlaveServer.php
@@ -0,0 +1,7 @@
 2+<?php
 3+
 4+require_once( dirname(__FILE__).'/commandLine.inc' );
 5+$i = $wgLoadBalancer->getReaderIndex();
 6+print $wgDBservers[$i]['host'] . "\n";
 7+
 8+?>
Property changes on: trunk/phase3/maintenance/getSlaveServer.php
___________________________________________________________________
Added: svn:eol-style
19 + native