From a6242f04d02d1cc99e055b742c22c2b41d79fbe3 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Sat, 20 Sep 2008 08:40:39 +0000 Subject: [PATCH] Use normal, more patient, connection attempts for master connection here --- includes/ExternalStoreDB.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/includes/ExternalStoreDB.php b/includes/ExternalStoreDB.php index 84d44a4018..fb3853ae3b 100644 --- a/includes/ExternalStoreDB.php +++ b/includes/ExternalStoreDB.php @@ -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.*/ -- 2.20.1