aboutsummaryrefslogtreecommitdiffstats
path: root/maintenance/storage
Commit message (Collapse)AuthorAgeFilesLines
* Make OrphanStats::getDB()'s signature compatible with parent.Alexandre Emsenhuber2012-08-181-1/+1
| | | | | | | | Was throwing Strict Standards: Declaration of OrphanStats::getDB() should be compatible with that of Maintenance::getDB() in maintenance/storage/orphanStats.php on line 25 Change-Id: I7451ada12a8c45aa37883b4b3803fbf505eec15b
* Cannot make method visibility lower than super's.Siebrand Mazeland2012-08-181-1/+1
| | | | Change-Id: I8ed3f3bad954dd03bd80d23954e31ee5429c04fe
* Bug 24985 use $wgTmpDirectory when availableMark A. Hershberger2012-06-131-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | We had two way to get a temporary directory: - $wgTempDirectory: more or less stable accross sessions - wfTempDir(): set through environnement variable and could potentially vary from a session to another one thanks to tempnam() This patch makes wfTempDir() to always use the global $wgTempDirectory first when it is available. Thus explicitly overriding tempnam() or any environnement variable such as TMP or TEMP. Hence, people who don't have access to a system wide directory specificed by their environnement (such as /tmp) can specify an alternative straight from the MediaWiki configuration. The patch remove references to $wgTmpDirectory and replace them with calls to wfTempDir(). Make wfTempDir() use $wgTmpDirectory first. The default setting of $wgTmpDirectory was removed in favor of having it initialized through Setup.php by calling wfTempDir. Note: this may also address Bug 36475 - Generating thumbnails does not work when there is no access to /tmp Change-Id: Ifdc79e9c5d95f978025b237a5eeb95fd75092f46
* Fix variable collisionReedy2012-04-071-2/+2
| | | | Change-Id: I28b22bd8aad30ef0323cdc897dce1de9849b1b87
* * (bug 34735) Updated compressOld.php documentation to mention the different ↵Alexandre Emsenhuber2012-03-201-4/+5
| | | | | | | | | usages of -s and -n parameters depending on compression type Based on patch by christian@quelltextlich.at - http://bug-attachment.wikimedia.org/attachment.cgi?id=10105 Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/114243
* Bug 34734 - compressOld.php ignoring -s optionAntoine Musso2012-03-011-1/+1
| | | | | | | | | This is fixing a regression caused by r90549. Patch by christian at quelltextlich dot at Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/112793
* More __METHOD__ in our madnessSam Reed2012-02-242-8/+8
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/112339
* More __METHOD__ into db related methodsSam Reed2012-02-241-2/+2
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/112332
* Remove some unused getting of non existent argumentsSam Reed2011-10-184-3/+25
| | | | | | | Documentation Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/100131
* Fixup some assignments in conditionalsSam Reed2011-10-161-0/+3
| | | | | | | Add/normalise some more return statements Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/99938
* Moved global define into class constant, replaced a bunch of $fname with ↵Chad Horohoe2011-09-101-20/+15
| | | | | | | __METHOD__. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/96718
* Followup r96479, move files to WikimediaMaintenanceSam Reed2011-09-072-226/+0
| | | | | | | | | Added missing svn:eol-style native Files still need updating to point back to the MW maintenance dir Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/96492
* adding tools to parse the output of storageTypeStats.phpBen Hartshorne2011-09-072-0/+226
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/96479
* Fix numerous undefined variablesSam Reed2011-07-011-0/+1
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/91243
* Followup r90020: use startid for consistency, and document endidChad Horohoe2011-06-211-2/+3
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/90549
* Rewrite compressOld to subclass maintenananceChad Horohoe2011-06-132-355/+344
| | | | | | | | | | | * Dropped compressOld.inc * Moved LS_INDIVIDUAL, LS_CHUNKED to class constants * Drop unused and undocumented 'h' parameter * Added long forms for all the short parameters * All of this so I could get rid of the wfDie() Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/90020
* Merge r86398 into the old wfWaitForSlaves. Update core calls.Platonides2011-04-205-7/+7
| | | | | | | | | | maintenance/waitForSlave.php still calls the old prototype. Most instances were replaced with sed -i 's/wfWaitForSlaves( [0-9]* );/wfWaitForSlaves();/' ./maintenance/initEditCount.php ./maintenance/updateRestrictions.php ./maintenance/updateSpecialPages.php ./maintenance/importDump.php ./maintenance/moveBatch.php ./maintenance/storage/resolveStubs.php ./maintenance/storage/trackBlobs.php ./maintenance/storage/fixBug20757.php ./maintenance/storage/moveToExternal.php ./maintenance/storage/compressOld.inc ./maintenance/populateSha1.php ./maintenance/deleteDefaultMessages.php ./maintenance/migrateUserGroup.php ./maintenance/importImages.php ./maintenance/runJobs.php ./maintenance/archives/upgradeLogging.php ./maintenance/deleteBatch.php ./maintenance/populateLogSearch.php ./maintenance/populateLogUsertext.php ./maintenance/gearman/gearmanWorker.php ./maintenance/populateRevisionLength.php ./maintenance/refreshLinks.php ./maintenance/deleteSelfExternals.php ./maintenance/upgrade1_5.php ./maintenance/rebuildFileCache.php ./includes/job/RefreshLinksJob.php ./includes/installer/MysqlUpdater.php ./maintenance/convertUserOptions.php ./maintenance/populateParentId.php ./maintenance/runBatchedQuery.php ./maintenance/upgrade1_5.php ./maintenance/waitForSlave.php ./maintenance/populateCategory.php ./maintenance/importImages.php Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/86447
* Fixup a couple more undefined variablesSam Reed2011-03-301-1/+1
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/85040
* Fix concern raised by Brion in r74108 (but has really existed since the ↵Chad Horohoe2011-01-134-4/+4
| | | | | | | | | | | maintenance rewrite). Right now, including a maintenance script causes it to execute. This is bad when you want to reuse the particular class but not have it start executing all by itself. Until now, we relied on setting MW_NO_SETUP which was a) hacky, b) irreversable, and c) likely to be forgotten if you didn't use one of the wrappers like runChild(). Instead, move the freaky magic to doMaintenance and have *it* check if it's in a specific call stack that indicates this is being run from the file scope and should be executed. Rename DO_MAINTENANCE to RUN_MAINTENANCE_IF_MAIN so it's nice and clear what magic happens behind the require_once(). Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/80205
* Part of bug 26280: added license headers to PHP files in maintenanceAlexandre Emsenhuber2010-12-1610-0/+184
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/78508
* Whitespace fixup under tha maint directory.Mark A. Hershberger2010-12-0410-44/+44
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/77711
* More unused variablesSam Reed2010-11-301-1/+1
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/77495
* follow-up to r74742: fix typosJack Phoenix2010-10-131-1/+1
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/74744
* Assignment in loop conditions suckSam Reed2010-10-134-11/+11
| | | | | | | while ( $row = $dbw->fetchObject( $res ) ) { to foreach ( $res as $row ) in maintenance stuffs (more to come) Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/74742
* Remove some unused variablesSam Reed2010-09-201-1/+0
| | | | | | | Add some braces Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/73377
* Remove some unused variablesSam Reed2010-08-131-1/+0
| | | | | | | Move variable in languages/classes/LanguageKu.php into commented code (used in comment) Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/71047
* Change require_once to actual pathSam Reed2010-08-091-5/+1
| | | | | | | Remove unused array Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/70781
* Big commit: kill almost every freeResult() call as uselessChad Horohoe2010-08-083-6/+1
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/70686
* More unused variables, whitespaceSam Reed2010-07-252-3/+1
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/69920
* Stylize maintenance folder..Sam Reed2010-05-2211-103/+103
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/66751
* Fixed object type unserialization. Based on WMF working copy patch, tested ↵Tim Starling2010-03-181-1/+2
| | | | | | | there. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/63899
* * Quieter, more frequent slave waitsTim Starling2010-03-181-14/+43
| | | | | | | | | * Option to skip the counts for the progress meter, allows faster startup * Merged from WMF working copy, tested there. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/63898
* Don't allow trackBlobs.php to continue if there is a potential for ↵Tim Starling2010-03-051-0/+42
| | | | | | | corruption as in bug 20757 or bug 22624. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/63304
* Fix for MySQL 4.0Tim Starling2010-02-251-1/+11
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/62981
* In fixBug20757.php:Tim Starling2010-02-223-13/+23
| | | | | | | | | | | | | | | | | | | | | * Don't use buildLike() just yet, for easy backporting to wmf-deployment. * Don't try to fetch old_flags=object,external rows * Skip rows with the wrong class using a MySQL condition since we really don't care about them * Propagate old_flags to the new pointer row. This could be necessary if moveToExternal.php was run after compressOld.php from MW>1.5. This never actually happened at Wikimedia. * Don't skip rows with bt_moved=0, we need to resolve these stubs if RCT is to continue. * Fix isUnbrokenStub() to not overwrite its input, fixes minor progress message issue * Tested locally. In resolveStubs.php: * Fixed two bugs in the condition intended to limit the rows acted on to HistoryBlobStub: the string we compared against was not all in lower case, and the character set was binary, making LOWER() do nothing. * Resolve stubs with old_flags='object,utf-8', analysis showed that we have some of these on enwiki * Tested locally. In trackBlobs.php: * Fixed a bug causing incorrect values to be inserted into bt_cgz_hash. There was no impact on RCT or any other script since bt_cgz_hash is unused at present. Tested locally. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/62807
* Resolve stubs which may be broken by running RCT. Added a --start option. ↵Tim Starling2010-02-191-12/+49
| | | | | | | Not tested yet. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/62688
* Classify rows with old_flags='object,utf-8' (there are 1800 in enwiki). Tim Starling2010-02-181-1/+1
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/62671
* Don't format old_id ranges in scientific (%E) notation.Tim Starling2010-02-121-3/+3
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/62351
* A script for doing full scans of the text table and presenting some ↵Tim Starling2010-02-111-0/+98
| | | | | | | resulting statistics about storage types. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/62300
* Bug fix: bt_page and bt_rev_id should be 0 for orphans, not null.Tim Starling2010-02-091-6/+6
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/62148
* Fixed a bug which came up during testing, world-destruction thus averted.Tim Starling2010-02-081-1/+1
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/62125
* Fix script for bug 20757.Tim Starling2010-02-081-0/+265
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/62124
* Fixup for r57989: removed artifacts of the previous version of my patch, ↵Max Semenik2009-12-171-2/+2
| | | | | | | improved code reuse. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/60162
* (bug 20275) Fixed LIKE queries on SQLite backendMax Semenik2009-10-214-6/+7
| | | | | | | | * All manually built LIKE queries in the core are replaced with a wrapper function Database::buildLike() * This function automatically performs all escaping, so Database::escapeLike() is now almost never used Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/57989
* Apply live hack from wmf-deployment r53208: allows passing alt table nameBrion Vibber2009-09-141-3/+8
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/56338
* Move dumpRev and orphanStats to subclass Maintenance. Make orphanStats bail ↵Chad Horohoe2009-08-212-53/+100
| | | | | | | out early if blob_orphans doesn't exist. dumpRev could use a nice description. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/55403
* config/index.php:Leons Petrazickis2009-08-151-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Made installation on IBM DB2 more robust * Replaced E_ALL with E_ALL | E_STRICT includes/db/DatabaseIbm_db2.php * Enabled DB2_CASE_LOWER option for all connections and statements * Enabled DB2_DEFERRED_PREPARE_ON for all statements -- delays statement preparation until execution to reduce database load * Enabled DB2_ROWCOUNT_PREFETCH_ON for all statements -- makes db2_num_rows() work correctly * Cleaned up error handling * Cleaned up method signatures * Rewrote insertion to use prepared statements -- required for inserting more than 32k of text * Insertion will never try to insert a NULL value into a primary key * Now relying on implicit casting in DB2 9.7 -- no longer sniffing to see if column is integer or string before adding quotes * Implemented actual prepared statement handling -- required for correct INSERT, UPDATE behaviour * In install mode, the class will print additional messages to the install bullet scroll * Added bitwise operations (BITNOT, BITAND, BITOR) includes/specials/SpecialAncientpages.php * Added skeleton DB2 syntax to the database-specific switch statement maintenance/convertLinks.inc * Made limit clause database-agnostic maintenance/ibm_db2/README * Contents replaced with link to http://www.mediawiki.org/wiki/Manual:IBM_DB2 maintenance/ibm_db2/tables.sql * Revised types to better match the MySQL schema * All tables names now the same as MySQL -- was using Postgres names before * Added some additional indices * Added the change_tag, tag_summary, valid_tag, user_properties, log_search, and l10n_cache tables * Added several new columns maintenance/storage/compressOld.inc * Made limit clause database-agnostic Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/55117
* Assorted minor live patches to command-line scripts.Tim Starling2009-04-301-0/+5
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/50068
* Insert blob_orphans rows in batches.Tim Starling2009-04-241-4/+11
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/49789
* (bug 17948) Maintenance scripts now exit(0) or exit(1) as appropriateChad Horohoe2009-04-061-1/+1
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/49247