From 073c601f7530557ab6912e12c0b8d98de0aa25c8 Mon Sep 17 00:00:00 2001 From: Siebrand Mazeland Date: Sat, 11 Jan 2014 09:36:34 +0100 Subject: [PATCH] Provide correct type as input for LoadMonitor::postConnectionBackoff() float is expected, bool was given. Change-Id: I046cc4b73166e79905e3556365f567420a4cabb9 --- includes/db/LoadBalancer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. -- 2.20.1