From: Brion Vibber Date: Thu, 29 Mar 2007 18:00:36 +0000 (+0000) Subject: committing a live-hack script so it doesn't get lost X-Git-Tag: 1.31.0-rc.0~53540 X-Git-Url: http://git.cyclocoop.org/%24self?a=commitdiff_plain;h=38928fad41dafc62d588077d926d530db802560e;p=lhc%2Fweb%2Fwiklou.git committing a live-hack script so it doesn't get lost --- diff --git a/maintenance/waitForSlave.php b/maintenance/waitForSlave.php new file mode 100644 index 0000000000..f41bdfc24d --- /dev/null +++ b/maintenance/waitForSlave.php @@ -0,0 +1,16 @@ +mServers as $i => $server ) { + if ( $server['host'] == '10.0.0.29' ) { + unset($wgLoadBalancer->mServers[$i]); + } +} +if ( isset( $args[0] ) ) { + wfWaitForSlaves($args[0]); +} else { + wfWaitForSlaves(10); +} + +?>