aboutsummaryrefslogtreecommitdiffstats
path: root/maintenance/storage
Commit message (Collapse)AuthorAgeFilesLines
...
* Avoid division by zeroTim Starling2009-01-031-2/+4
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/45355
* Gracefully skip clusters that don't have the wiki in questionTim Starling2009-01-031-1/+10
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/45354
* Updated.Tim Starling2009-01-031-6/+44
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/45353
* (bug 16841) Fix typo (utf8 -> utf-8)Aaron Schulz2008-12-301-1/+1
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/45205
* Stats on the blob_orphans table, to make sure we're not losing anything by ↵Tim Starling2008-12-191-0/+44
| | | | | | | dropping the tracked orphans. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/44799
* Assorted tweaks on further review and local testing:Tim Starling2008-11-031-35/+123
| | | | | | | | | | | | * Default 1 child process * Introduce a log system so that critical errors can be filtered out of the progress messages * Warn on abnormal child termination * Use the actual row count for progress instead of the end ID. I think we can afford to count rows. * Check for bt_moved=0 in doOrphanList() after finishIncompleteMoves(), to avoid attempted double-move and resulting spurious "conflict detected" warning Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/43151
* TypoTim Starling2008-11-011-1/+1
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/42994
* * Added $wgDebugLogPrefix, to allow users (or in this case, multiprocess ↵Tim Starling2008-11-013-43/+85
| | | | | | | | | | | | | | | | | | | | command-line scripts) to set a debug log line prefix * Improved blob_tracking.sql docs * Allow testCompression.php to run until happy instead of a specified revision count * Added docs for some debugging globals in DefaultSettings.php In experimental script recompressTracked.php: * Fixed crippling bugs, seems to work now. Needs more testing. * Improved usage documentation * Use DiffHistoryBlob by default if available * Set a process-specific log prefix, added more debugging output * Optimised commit() slightly by merging the locking read queries using IN() * Fixed finishIncompleteMoves() so doPage() acts on only that page. Also run finishIncompleteMoves() for orphan lists. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/42992
* * Added recompressTracked.php, the second part of the recompression project. ↵Tim Starling2008-10-294-12/+635
| | | | | | | | | | | Uses the sorted list of blobs compiled by trackBlobs.php to recompress the entire contents of a set of external storage clusters to a new set of clusters, and updates the text table accordingly. * Tweaked blob_tracking indexes now that I know what I'm doing with them * Standardised isHappy() on no arguments. Use an uncompressed size limit instead of the weird things I did originally. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/42767
* Reverted r42528. Links with href="#" make firefox scroll to the top of the ↵Tim Starling2008-10-252-7/+13
| | | | | | | page, regardless of onclick handler. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/42531
* Refactored and added orphan blob searchTim Starling2008-10-192-161/+276
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/42218
* Some initial work on external storage recompression. Committing now in case ↵Tim Starling2008-10-192-0/+236
| | | | | | | I accidentally destroy it in a fit of refactoring. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/42215
* Revert revert r41578 of r41531 and fix compressOld.php. Tim Starling2008-10-172-5/+71
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/42166
* Backing r41531 out for now ("Concept for diff-based compression using the ↵Brion Vibber2008-10-031-70/+0
| | | | | | | | | new xdiff beta") Looks cool, but this changes the return type of ConcatenatedGzipHistoryBlob::addItem() from a stub object to a hash value, which will break its usages in ConcatenatedGzipHistoryBlob::setText() and maintenance/storage/compressOld.inc. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/41578
* * Concept for diff-based compression using the new xdiff beta. Acheives ↵Tim Starling2008-10-021-0/+70
| | | | | | | | | | massively better compression ratio compared to CGZ for articles which are larger than the deflate 32 KB sliding window. Works within the HistoryBlob architecture. * Fixed documentation in HistoryBlob.php, removed "todo document" for methods that are adequately documented in the interface. * Added testCompression.php for testing concatenated object compression ratio Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/41531
* Change all uses of TYPE= in MySQL to ENGINE=Daniel Friesen2008-07-101-1/+1
| | | | | | | | | According to the MySQL manual, TYPE= has been depreciated since MySQL 4.0, starting in 5.1 database warnings are issued when TYPE= is used instead of ENGINE=, and in MySQL 5.2 TYPE= will be removed. Using ENGINE= inside of sql should serve the best compatibility since we require at least MySQL 4.0 Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/37540
* Fix options with an argumentAlexandre Emsenhuber2008-06-011-1/+1
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/35682
* WARNING: HUGE COMMITAlexandre Emsenhuber2008-05-206-12/+26
| | | | | | | | | | | | | | | | | | 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
* (bug 12738) Database query syntax error in maintenance/storage/compressOld.incHuji2008-01-241-1/+1
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/30110
* don't use unspecific paths in require_once()'s ... they break with default ↵Brion Vibber2007-08-132-4/+0
| | | | | | | include path, and are also unnecessary under autoloader scheme Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/24757
* Remove ?>'s from files. They're pointless, and just asking for people to ↵Aryeh Gregor2007-06-295-5/+4
| | | | | | | 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 MyISAM by default instead of InnoDBDomas Mituzas2007-03-211-3/+3
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/20597
* * (bug 4268) Fixed data-loss bug in compressOld batch text compressionBrion Vibber2007-02-021-2/+2
| | | | | | | | | affecting pages which had null edits (move, protect, etc) as second edit in a batch group. Isolated and patched by Travis Derouin. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/19726
* Fix up paths so you can call these scripts from base dirBrion Vibber2007-01-244-5/+6
| | | | | | | Also fixed an 'old' table reference which should now be 'text' ... Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/19613
* The war on redundant ampersand usage!Nick Jenkins2007-01-225-18/+18
| | | | | | | | | | | | * Convert "$dbw =& wfGetDB( DB_MASTER );" --> "$dbw = wfGetDB( DB_MASTER );" * convert "$skin =& $wgUser->getSkin();" --> "$skin = $wgUser->getSkin();" For the time being have not changed the function definitions of wfGetDB() or User::getSkin() [i.e. they are still both return-by-ref], so as to ensure the interface does not change for extensions [some of which may still be trying to run on PHP4 environments]. However presumably at some point this can be changed too. Also includes tiny tweak to newlines in parserTests - will show 1 rather than 2 newlines between the "Reading tests from" strings when in quiet mode. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/19598
* Use Doxygen @addtogroup instead of phpdoc @package && @subpackageAntoine Musso2007-01-202-4/+2
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/19502
* Apply most of the code tweaks from the live site:Brion Vibber2007-01-174-69/+83
| | | | | | | | | | | | | | | | | | | | | | | * use configured cache servers for mctest.php * bucket details in mcc.php * fix input validation and remove debugging code in compressOld * full ID range for moveToExternal * fix resolveStubs.php for compatibility with older serialized data * maximum line length for bar graphs in getLagTimes.php * recognize specieswiki in rebuildInterwiki.inc * --purge option to do additional parser-cache purging for purgeList.php * default changed in MiniDonation extension * profile unicode cleanup in Xml * log slow parses in Article.php * profile wfMsgReal * log mkdir failures * profile AutoLoader * rebuild empty DjVu metadata containing '' * security fix for DjVu metadata retrieval Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/19364
* Database update will work better if $dbw is initialized.Nick Jenkins2007-01-121-0/+1
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/19146
* For the maintenance/ directory files:Nick Jenkins2007-01-123-9/+2
| | | | | | | | | | | | * Removing unused local vars. * Removing unused global declarations. * removing one or two pass-by-refs parameter declarations where not required by PHP5. * Adding some local variable declarations / initializations (initialized to either to array(), null) to keep static code analyzer happy. * Changing lines like this: "extract( $dbw->tableNames( 'page', 'archive' ) );" to be like this: "list ($page, $archive) = $dbw->tableNamesN( 'page', 'archive' );". * Add one or two braces to if-else blocks. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/19145
* Committed a bunch of live hacks from Wikimedia serversBrion Vibber2006-10-021-0/+11
| | | | | | | | A few left, but these don't look too evil Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/16738
* * Converted to Unix newlinesÆvar Arnfjörð Bjarmason2006-07-201-468/+468
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/15738
* Added experimental support for restorationTim Starling2006-04-241-256/+401
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/13837
* various improvementsTim Starling2006-04-241-34/+41
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/13831
* bugTim Starling2006-04-221-4/+5
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/13815
* Storage integrity checkTim Starling2006-04-221-0/+315
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/13814
* Don't lock page table rowsTim Starling2006-04-161-4/+12
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/13663
* put TYPE back in, now as it's back in 5.1 ;-)Domas Mituzas2006-04-081-1/+1
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/13551
* Live fixes: lots of scary magic runes; php 5 fixes; reporting; etcBrion Vibber2006-04-024-50/+66
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/13429
* replace TYPE= with ENGINE=, (supported since 4.0, TYPE deprecated since 4.1)Domas Mituzas2006-03-121-1/+1
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/13197
* * Added wfDie() wrapper, and some manual die(-1), to force the return codeBrion Vibber2006-01-141-1/+1
| | | | | | | to the shell to return nonzero when we crap out with an error. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/12660
* Simple script to initialise external storageTim Starling2006-01-101-0/+11
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/12564
* * s~\t+$~~Ævar Arnfjörð Bjarmason2006-01-072-8/+8
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/12476
* * s~ +$~~Ævar Arnfjörð Bjarmason2006-01-074-24/+24
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/12472
* --endid option, minor tweaksTim Starling2005-10-222-10/+21
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/11434
* ExternalStoreDB supportDomas Mituzas2005-08-211-21/+46
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/10688
* do not specify default for auto-inc columnDomas Mituzas2005-08-211-1/+1
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/10687
* do not block-compress current versionsDomas Mituzas2005-08-201-0/+4
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/10660
* External storage handlingTim Starling2005-08-143-33/+125
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/10507
* updated for 1.5/1.6Tim Starling2005-08-142-38/+52
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/10503
* removed phpdoc cruftTim Starling2005-08-141-6/+0
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/10500