From: Siebrand Mazeland Date: Sat, 11 Jan 2014 08:36:34 +0000 (+0100) Subject: Provide correct type as input for LoadMonitor::postConnectionBackoff() X-Git-Tag: 1.31.0-rc.0~17198^2 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/pie.php?a=commitdiff_plain;h=073c601f7530557ab6912e12c0b8d98de0aa25c8;p=lhc%2Fweb%2Fwiklou.git Provide correct type as input for LoadMonitor::postConnectionBackoff() float is expected, bool was given. Change-Id: I046cc4b73166e79905e3556365f567420a4cabb9 --- diff --git a/includes/db/LoadBalancer.php b/includes/db/LoadBalancer.php index 7a49c78ece..c388718281 100644 --- a/includes/db/LoadBalancer.php +++ b/includes/db/LoadBalancer.php @@ -276,7 +276,7 @@ class LoadBalancer { // Perform post-connection backoff $threshold = isset( $this->mServers[$i]['max threads'] ) - ? $this->mServers[$i]['max threads'] : false; + ? $this->mServers[$i]['max threads'] : 0; $backoff = $this->getLoadMonitor()->postConnectionBackoff( $conn, $threshold ); // Decrement reference counter, we are finished with this connection.