From: Aaron Schulz Date: Thu, 23 May 2013 07:26:33 +0000 (-0700) Subject: Reset the error string in LoadBalancer::getConnection() to avoid it crufting up. X-Git-Tag: 1.31.0-rc.0~19586^2 X-Git-Url: http://git.cyclocoop.org//%27http:/code.google.com/p/ie7-js//%27?a=commitdiff_plain;h=dc252e0aaff968bec2c7b4a3a25898355e8fb2c6;p=lhc%2Fweb%2Fwiklou.git Reset the error string in LoadBalancer::getConnection() to avoid it crufting up. Change-Id: I89e9fb46367970a0877986cd72d397eef51a0a06 --- 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 ) {