From dc252e0aaff968bec2c7b4a3a25898355e8fb2c6 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Thu, 23 May 2013 00:26:33 -0700 Subject: [PATCH] Reset the error string in LoadBalancer::getConnection() to avoid it crufting up. Change-Id: I89e9fb46367970a0877986cd72d397eef51a0a06 --- includes/db/LoadBalancer.php | 1 + 1 file changed, 1 insertion(+) diff --git a/includes/db/LoadBalancer.php b/includes/db/LoadBalancer.php index 12e493a48c..db709b523f 100644 --- a/includes/db/LoadBalancer.php +++ b/includes/db/LoadBalancer.php @@ -479,6 +479,7 @@ class LoadBalancer { # Operation-based index if ( $i == DB_SLAVE ) { + $this->mLastError = 'Unknown error'; // reset error string $i = $this->getReaderIndex( false, $wiki ); # Couldn't find a working server in getReaderIndex()? if ( $i === false ) { -- 2.20.1