dépôts
/
lhc
/
web
/
wiklou.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Per talk with River on IRC:
[lhc/web/wiklou.git]
/
maintenance
/
waitForSlave.php
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
?
>