aboutsummaryrefslogtreecommitdiffstats
path: root/includes/ExternalStoreDB.php
Commit message (Collapse)AuthorAgeFilesLines
* Fix for r98756: $wgDefaultExternalStore can also be a stringAlexandre Emsenhuber2011-10-041-1/+1
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/98865
* Merge r97687Sam Reed2011-10-031-3/+13
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/98756
* Make $wgExternalBlobCache a local static variable.Platonides2010-08-121-24/+11
| | | | | | | | Remove $wgExternalLoadBalancers, unused since r32578 (birth of LBFactory) Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/70977
* * Document a bitAlexandre Emsenhuber2010-01-081-5/+25
| | | | | | | * Fix some doxygen warnings Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/60853
* Update callers from immediateCommit() to commit(). The former's been ↵Chad Horohoe2009-12-141-1/+1
| | | | | | | deprecated a really long time...Tim did it 45243 revisions ago. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/60051
* Small-scale data loss logged on Wikimedia along these lines: invalid URL ↵Tim Starling2009-04-301-0/+3
| | | | | | | written to old_text with the user thinking their edit has succeeded. This change should prevent that scenario. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/50069
* Allow storage of blobs to ES on foreign wikis, by calling ↵Andrew Garrett2009-03-261-3/+11
| | | | | | | ExternalStore::storeToForeignDefault, related changes including adding an associative array parameter to the ExternalStore constructor. Currently this parameter is just used to specify on which wiki the external store is wanted, but could be expanded in future. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/48875
* * Revert revert r41234 of ES-related changes. The site_stats complaint ↵Tim Starling2008-09-281-3/+0
| | | | | | | | | | | should be fixed by the transaction added in r41287. * Fix broken recursion guard in LoadBalancer::reportConnectionError(), which was causing getConnection() to return false on the second and subsequent errors, instead of throwing an exception. Revert incorrect fix r41229/r41230. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/41329
* Add insertRandom() with failover back. Currently not used just yet.Aaron Schulz2008-09-241-6/+8
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/41235
* Revert some recent ES-related changes -- they made behavior much worse when ↵Brion Vibber2008-09-241-9/+7
| | | | | | | | | | | | | | | | | | we encountered problems with site_stats updates hanging and stacking up extra open ES connections. r41230 r41229 r41093 r41091 r41092 r41086 r41063 r40696 Also reverted r41231 which no longer applies Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/41234
* Uncomment out needed code, PN2 not wanting to save :/Aaron Schulz2008-09-241-3/+3
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/41230
* Revert untested code change from r41086. Don't call methods on non-objects, ↵Aaron Schulz2008-09-241-1/+3
| | | | | | | the fatal will stop even with the error catching. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/41229
* Revert/rewrite of r40696.Tim Starling2008-09-211-9/+6
| | | | | | | | * We used to have parameters to ignore errors, but they're obsolete now that we have exceptions. Implemented ES master failover using exceptions instead. * Changing the number of DB connection attempts from 3 to 2 for some random getConnection() calls is almost pointless, adds lots of ugly formal parameters all of the place, and misses the big picture. It should be 2 by default, based on the original rationale. Any reasonable implementation of failover should have zero timeouts per request, by storing state. Changed the default to 2, or 1 if a long timeout is set. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/41086
* Use normal, more patient, connection attempts for master connection hereAaron Schulz2008-09-201-3/+1
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/41063
* ExternalStore tweaks:Aaron Schulz2008-09-101-10/+15
| | | | | | | | | * On read, spend less time checking on dead slaves * Add randomInsert() to ES. This does the cluster picking for us * Make revision text use randomInsert(). On write, fails-over to other clusters as needed instead of throwing db errors Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/40696
* WARNING: HUGE COMMITAlexandre Emsenhuber2008-05-201-8/+4
| | | | | | | | | | | | | | | | | | Doxygen documentation update: * Changed alls @addtogroup to @ingroup. @addtogroup adds the comment to the group description, but doesn't add the file, class, function, ... to the group like @ingroup does. See for example http://svn.wikimedia.org/doc/group__SpecialPage.html where it's impossible to see related files, classes, ... that should belong to that group. * Added @file to file description, it seems that it should be explicitely decalred for file descriptions, otherwise doxygen will think that the comment document the first class, variabled, function, ... that is in that file. * Removed some empty comments * Removed some ?> Added following groups: * ExternalStorage * JobQueue * MaintenanceLanguage One more thing: there are still a lot of warnings when generating the doc. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/35098
* * remove end of line whitespaceSiebrand Mazeland2008-04-141-1/+0
| | | | | | | | * remove empty lines at end of file * remove "?>" where still present Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/33276
* * Introduced LBFactory -- an abstract class for configuring database load ↵Tim Starling2008-03-301-6/+1
| | | | | | | | | | | | | | | | | | | 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: http://mediawiki.org/wiki/Special:Code/MediaWiki/32578
* Remove ?>'s from files. They're pointless, and just asking for people to ↵Aryeh Gregor2007-06-291-1/+1
| | | | | | | mess with the files and add trailing whitespace. (Yes, I looked over every one and reverted those that were bogus. Slash-enter a million times in less worked well enough, although it was a bit mind-numbing.) Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/23531
* Use Doxygen @addtogroup instead of phpdoc @package && @subpackageAntoine Musso2007-01-201-2/+0
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/19502
* * Removed lots of explicit require_once statements. The autoloader should ↵Tim Starling2006-10-031-1/+0
| | | | | | | | | | | theoretically be faster, because it always uses an absolute path, eliminating the need for a search, and it is never called unnecessarily. Absolute paths are also more robust in the face of odd configurations or usage patterns. Moved a few constants around to support this, they always have to be available before the method call. * Deleted DatabaseMysql.php, no longer necessary, database classes are autoloaded. * Moved wfGetMimeMagic() to MimeMagic::singleton() * Fixed a couple of __CLASS__.'::'.__FUNCTION__ things. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/16759
* Revert to r14512; domas introduced massive breakage with incomplete ↵Brion Vibber2006-06-011-0/+2
| | | | | | | experimental changes. They will be recommitted when they work. :) Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/14516
* Use AutoLoader to load classes:Domas Mituzas2006-06-011-2/+0
| | | | | | | | | | | * remove require_once() throughout whole code, yet left in few places * move global functions in HttpUtils, ProxyTools, Credits to class methods * php5 only: __autoload() now used, combined with class->file map and require() * move initialization of $wgValidSkinNames to Skin::getSkinNames() * few more changes that will surely break stuff. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/14513
* Switching from phpdoc to doxygen (use less than 32MB of memory).Antoine Musso2006-04-191-10/+14
| | | | | | | | Run maintenance/mwdocgen.php to generate doc in ./docs/html/ . Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/13740
* Fixed bogus fallback to master in external storage.Brion Vibber2006-03-141-1/+5
| | | | | | | It was loading a second time from the slave, *and* the logging code had a typo so didn't show it. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/13201
* removing unused globals and some whitespace cleaningLupin2006-03-071-2/+0
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/13179
* *g*, bypass lag checks for external store (as it already fallbacks to master)Domas Mituzas2006-01-231-0/+1
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/12839
* Try the master if a blob is not found in the slaveTim Starling2006-01-191-2/+7
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/12770
* Option to write text directly to external storage.Tim Starling2006-01-091-1/+5
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/12537
* * s~\t+$~~Ævar Arnfjörð Bjarmason2006-01-071-7/+7
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/12476
* * s~ +$~~Ævar Arnfjörð Bjarmason2006-01-071-2/+2
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/12472
* Ability to set the blobs table name for any server in an external cluster. ↵Tim Starling2005-10-291-2/+10
| | | | | | | This would allow, for example, the merging of all external storage for a large wikipedia dump into a single database, with "clusters" distinguished by table name. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/11557
* * Correct blob caching to reduce redundant blob loads on backupsBrion Vibber2005-09-161-11/+54
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/11035
* removed relicTim Starling2005-08-141-6/+1
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/10506
* support for two-part external storage URLs referring to parts of history blobsTim Starling2005-08-141-7/+55
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/10490
* fix some issues with phpdocAntoine Musso2005-07-051-3/+6
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/9938
* Make HistoryStub ExternalStore-aware. Renamed external table, so that it can ↵Jens Frank2005-05-231-1/+1
| | | | | | | be inside of the same DB for testing purposes Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/9142
* uppercase URLJens Frank2005-05-211-2/+2
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/9119
* Class for storing objects in an external DB clusterJens Frank2005-05-211-0/+37
Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/9118