repo.or.cz
/
mediawiki.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
* Update docs/skin.txt.
[mediawiki.git]
/
maintenance
/
waitForSlave.php
blob
73a473649b55b0f94371563cbd8c8635369202a9
1
<
?php
2
require_once
(
"commandLine.inc"
);
3
4
# Don't wait for benet
5
foreach
(
$wgLoadBalancer
->
mServers
as
$i
=>
$server
) {
6
if
(
$server
[
'host'
] ==
'10.0.0.29'
) {
7
unset
(
$wgLoadBalancer
->
mServers
[
$i
]);
8
}
9
}
10
if
(
isset
(
$args
[
0
] ) ) {
11
wfWaitForSlaves
(
$args
[
0
]);
12
}
else
{
13
wfWaitForSlaves
(
10
);
14
}
15
16