Fix per-connection database name in DBAccessBase.
authordaniel <daniel.kinzler@wikimedia.de>
Tue, 27 Nov 2012 18:18:55 +0000 (19:18 +0100)
committerdaniel <daniel.kinzler@wikimedia.de>
Tue, 27 Nov 2012 18:18:55 +0000 (19:18 +0100)
Change-Id: I5ac4bfb93f2dfee1e6822f7afd75ff81c0864e43

includes/dao/DBAccessBase.php

index 72e54fc..b6ffdb8 100644 (file)
@@ -50,12 +50,13 @@ abstract class DBAccessBase implements IDBAccessObject {
         * @see LoadBalancer::getConnection()
         *
         * @param int $id Which connection to use
+        * @param array $groups Query groups
         *
         * @return \DatabaseBase
         */
-       protected function getConnection( $id ) {
+       protected function getConnection( $id, $groups = array() ) {
                $loadBalancer = wfGetLB( $this->wiki );
-               return $loadBalancer->getConnection( $id );
+               return $loadBalancer->getConnection( $id, $groups, $this->wiki );
        }
 
        /**