summaryrefslogtreecommitdiff
path: root/maintenance/waitForSlave.php
blob: 73a473649b55b0f94371563cbd8c8635369202a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<?php
require_once( "commandLine.inc" );

# Don't wait for benet
foreach ( $wgLoadBalancer->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);
}