Merge "Provide correct type as input for LoadMonitor::postConnectionBackoff()"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Wed, 22 Jan 2014 22:06:12 +0000 (22:06 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Wed, 22 Jan 2014 22:06:12 +0000 (22:06 +0000)
includes/db/LoadBalancer.php

index 8268f4c..c88ad05 100644 (file)
@@ -278,7 +278,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.