Merge "Made SqlBagOStuff unset DB handles on connection errors"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Sun, 28 Jun 2015 00:28:30 +0000 (00:28 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Sun, 28 Jun 2015 00:28:30 +0000 (00:28 +0000)
includes/objectcache/SqlBagOStuff.php

index c57c9fb..1ed8ef5 100644 (file)
@@ -761,6 +761,8 @@ class SqlBagOStuff extends BagOStuff {
         * @param int $serverIndex
         */
        protected function markServerDown( $exception, $serverIndex ) {
+               unset( $this->conns[$serverIndex] ); // bug T103435
+
                if ( isset( $this->connFailureTimes[$serverIndex] ) ) {
                        if ( time() - $this->connFailureTimes[$serverIndex] >= 60 ) {
                                unset( $this->connFailureTimes[$serverIndex] );