From 38928fad41dafc62d588077d926d530db802560e Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Thu, 29 Mar 2007 18:00:36 +0000 Subject: [PATCH] committing a live-hack script so it doesn't get lost --- maintenance/waitForSlave.php | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 maintenance/waitForSlave.php 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); +} + +?> -- 2.20.1