Use normal, more patient, connection attempts for master connection here
authorAaron Schulz <aaron@users.mediawiki.org>
Sat, 20 Sep 2008 08:40:39 +0000 (08:40 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Sat, 20 Sep 2008 08:40:39 +0000 (08:40 +0000)
includes/ExternalStoreDB.php

index 84d44a4..fb3853a 100644 (file)
@@ -41,9 +41,7 @@ class ExternalStoreDB {
        /** @todo Document.*/
        function &getMaster( $cluster, $retry = true ) {
                $lb =& $this->getLoadBalancer( $cluster );
-               // Make only two connection attempts if there are other clusters to try
-               $attempts = $retry ? false : 2;
-               return $lb->getConnection( DB_MASTER, array(), false, $attempts, LoadBalancer::GRACEFUL );
+               return $lb->getConnection( DB_MASTER, array(), false, false, LoadBalancer::GRACEFUL );
        }
 
        /** @todo Document.*/