https://bugzilla.wikimedia.org/show_bug.cgi?id=64364
--- Comment #6 from Liangent <[email protected]> --- Hmm hard to tell whether my code is "configuration" or "extension" :/ I'm running MediaWiki on ToolLab-replicated database, and the following is my code snippet. I can't remember the exact reason that these lines are needed, but I believe that it's due to some inflexibility in "normal" configurations... <?php class LBFactory_Labs extends LBFactoryMulti { # To use a customized LoadBalancer class function newLoadBalancer( $template, $loads, $groupLoads ) { global $wgMasterWaitTimeout; $servers = $this->makeServerArray( $template, $loads, $groupLoads ); $lb = new LoadBalancerLabs( array( 'servers' => $servers, 'masterWaitTimeout' => $wgMasterWaitTimeout )); return $lb; } } class LoadBalancerLabs extends LoadBalancer { # Ignore $dbNameOverride. dbnames are already specified per server function reallyOpenConnection( $server, $dbNameOverride = false ) { return parent::reallyOpenConnection( $server ); } } -- You are receiving this mail because: You are the assignee for the bug. You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
