Reset the error string in LoadBalancer::getConnection() to avoid it crufting up.
authorAaron Schulz <aschulz@wikimedia.org>
Thu, 23 May 2013 07:26:33 +0000 (00:26 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Thu, 23 May 2013 07:26:46 +0000 (00:26 -0700)
Change-Id: I89e9fb46367970a0877986cd72d397eef51a0a06

includes/db/LoadBalancer.php

index 12e493a..db709b5 100644 (file)
@@ -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 ) {