Make NameTableStore use LoadBalancer::getConnectionRef()
[lhc/web/wiklou.git] / includes / Storage / NameTableStore.php
index 5ef0304..f8a1f5c 100644 (file)
@@ -111,7 +111,7 @@ class NameTableStore {
         * @return IDatabase
         */
        private function getDBConnection( $index, $flags = 0 ) {
-               return $this->loadBalancer->getConnection( $index, [], $this->domain, $flags );
+               return $this->loadBalancer->getConnectionRef( $index, [], $this->domain, $flags );
        }
 
        /**