This seems to work anyway (as no connections are needed at
this time), but I guess it's more robust to explicitly
destroy any existing instances.
Bug: T147169
Change-Id: Id56a62d1830fc1464a80dd4420ffddd797bf8b51
}
if ( $this->hasOption( 'dbgroupdefault' ) ) {
$wgDBDefaultGroup = $this->getOption( 'dbgroupdefault', null );
+
+ MediaWikiServices::getInstance()->getDBLoadBalancerFactory()->destroy();
}
if ( $this->getDbType() == self::DB_ADMIN && isset( $wgDBadminuser ) ) {