/** * @param int $dbIndex DB_MASTER or DB_REPLICA * * @return IDatabase * @throws MWException */ private function getConnectionRef($dbIndex) { return $this->loadBalancer->getConnectionRef($dbIndex, ['watchlist']); }
/** * @return IDatabase * @throws MWException */ private function getConnection() { return $this->loadBalancer->getConnectionRef(DB_REPLICA, ['watchlist']); }