Commit graph

4 commits

Author SHA1 Message Date
Siebrand Mazeland
79d5225c0e * remove end of line whitespace
* remove empty lines at end of file
* remove "?>" where still present
2008-04-14 07:45:50 +00:00
Alexandre Emsenhuber
83d7338144 * Fixes for Parser tests (was broken with new load balancing system), added LBFactory::destroy() to destroy the singleton instance and force reopening a connection with the new value of $wgDBprefix.
* Added new globals to override:
** $wgGroupPermissions : restore default value for anons, some tests don't pass if anons aren't allowed to edit (there isn't "edit section" links)
** $wgDefaultExternalStore : don't use external sotrage since there isn't a table extdb.parsertest_blobs
2008-03-30 17:43:51 +00:00
Alexandre Emsenhuber
aae07de760 Some fixes to the new load balancement system:
* return LBFactory::getExternalLB() as reference to avoid an E_NOTICE in ExternalStoreDB::getLoadBalancer()
* remove unused global declaration of $wgExternalServers in LBFactory_Multi::getExternalLB()
2008-03-30 15:16:50 +00:00
Tim Starling
fbfb509df5 * 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
2008-03-30 09:48:15 +00:00