dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0dd9f81
)
Remove slave servers from rotation if the slave thread is not running on them
author
Tim Starling
<tstarling@users.mediawiki.org>
Wed, 25 Apr 2007 07:42:14 +0000
(07:42 +0000)
committer
Tim Starling
<tstarling@users.mediawiki.org>
Wed, 25 Apr 2007 07:42:14 +0000
(07:42 +0000)
includes/LoadBalancer.php
patch
|
blob
|
history
diff --git
a/includes/LoadBalancer.php
b/includes/LoadBalancer.php
index
d3d072e
..
4ebe26c
100644
(file)
--- a/
includes/LoadBalancer.php
+++ b/
includes/LoadBalancer.php
@@
-95,7
+95,9
@@
class LoadBalancer {
# Unset excessively lagged servers
$lags = $this->getLagTimes();
foreach ( $lags as $i => $lag ) {
- if ( isset( $this->mServers[$i]['max lag'] ) && $lag > $this->mServers[$i]['max lag'] ) {
+ if ( $i != 0 && isset( $this->mServers[$i]['max lag'] ) &&
+ ( $lag === false || $lag > $this->mServers[$i]['max lag'] ) )
+ {
unset( $loads[$i] );
}
}