Index: trunk/phase3/includes/db/LoadBalancer.php |
— | — | @@ -120,11 +120,11 @@ |
121 | 121 | # Unset excessively lagged servers |
122 | 122 | $lags = $this->getLagTimes( $wiki ); |
123 | 123 | foreach ( $lags as $i => $lag ) { |
124 | | - if ( $i != 0 && isset( $this->mServers[$i]['max lag'] ) ) { |
| 124 | + if ( $i != 0 ) { |
125 | 125 | if ( $lag === false ) { |
126 | 126 | wfDebug( "Server #$i is not replicating\n" ); |
127 | 127 | unset( $loads[$i] ); |
128 | | - } elseif ( $lag > $this->mServers[$i]['max lag'] ) { |
| 128 | + } elseif ( isset( $this->mServers[$i]['max lag'] ) && $lag > $this->mServers[$i]['max lag'] ) { |
129 | 129 | wfDebug( "Server #$i is excessively lagged ($lag seconds)\n" ); |
130 | 130 | unset( $loads[$i] ); |
131 | 131 | } |