diff options
author | Tim Starling <tstarling@users.mediawiki.org> | 2008-03-30 09:48:15 +0000 |
---|---|---|
committer | Tim Starling <tstarling@users.mediawiki.org> | 2008-03-30 09:48:15 +0000 |
commit | fbfb509df557ca9eef812f6645459c483149f186 (patch) | |
tree | bf21e0d870c3ba8483d3bcc734ec4dbc4e120da7 /maintenance/eval.php | |
parent | 0472f032018dfeff5d9b65b126df006d0f3983c3 (diff) | |
download | mediawikicore-fbfb509df557ca9eef812f6645459c483149f186.tar.gz mediawikicore-fbfb509df557ca9eef812f6645459c483149f186.zip |
* Introduced LBFactory -- an abstract class for configuring database load balancers and connecting to foreign DBs.
* Wrote two concrete implementations. LBFactory_Simple is for general installations. LBFactory_Multi will replace the runtime configuration used on Wikimedia and allow load-balanced connections to any DB.
* Ported Special:Userrights, CentralAuth and OAI audit to the LBFactory system.
* Added ForeignDBViaLBRepo, a file repository which uses LBFactory.
* Removed $wgLoadBalancer and $wgAlternateMaster
* Improved the query group concept to allow failover and lag control
* Improved getReaderIndex(), it will now try all servers before waiting, instead of waiting after each.
* Removed the $fail parameter to getConnection(), obsolete.
* Removed the useless force() function.
* Abstracted the replication position interface to allow for future non-MySQL support.
* Rearranged Database.php. Added a few debugging features.
* Removed ancient benet-specific hack from waitForSlave.php
Notes
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/32578
Diffstat (limited to 'maintenance/eval.php')
-rw-r--r-- | maintenance/eval.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/maintenance/eval.php b/maintenance/eval.php index 519411df8c03..605576e45004 100644 --- a/maintenance/eval.php +++ b/maintenance/eval.php @@ -33,8 +33,9 @@ if ( isset( $options['d'] ) ) { $wgDebugLogFile = '/dev/stdout'; } if ( $d > 1 ) { - foreach ( $wgLoadBalancer->mServers as $i => $server ) { - $wgLoadBalancer->mServers[$i]['flags'] |= DBO_DEBUG; + $lb = wfGetLB(); + foreach ( $lb->mServers as $i => $server ) { + $lb->mServers[$i]['flags'] |= DBO_DEBUG; } } if ( $d > 2 ) { |