aboutsummaryrefslogtreecommitdiffstats
path: root/maintenance/storage/trackBlobs.php
Commit message (Collapse)AuthorAgeFilesLines
...
* Fixed spacingumherirrender2013-11-211-1/+0
| | | | | | | | - Removed trailing spaces in comments - Removed multiple empty lines - Removed space after object operator Change-Id: I9fd3256ab490c7cd2034de3fd94e6be6e6d6d8f2
* phpcs: More require/include is not a functionTimo Tijhof2013-05-211-1/+1
| | | | | | | | | | | | | Follows-up I1343872de7, Ia533aedf63 and I2df2f80b81. Also updated usage in text in documentation and the installer LocalSettingsGenerator. Most of them were handled by this regex: - find: (require|include|require_once|include_once)\s*\(\s*(.+?)\s*\)\s*;$ - replace: $1 $2; Change-Id: I6b38aad9a5149c9c43ce18bd8edbab14b8ce43fa
* Clean up: Declare variables with public instead of varMarius Hoch2012-09-141-5/+5
| | | | | | | | | | | | Variables in classes should be declared using public $foo instead of var $foo for various reasons. As we require PHP 5.3 we don't have to take care about that PHP4 left over, but can get rid of it in favour of the more clear and better readable public. See also: http://php.net/manual/en/language.oop5.visibility.php (Divided into several commits to keep reviewable) Change-Id: Ic723d0347ab2e3c78bc0097345c68bbee3dc035a
* Use __DIR__ instead of dirname( __FILE__ )jeroendedauw2012-08-271-2/+2
| | | | | | We can now do this since we finally switched to PHP 5.3 for MW 1.20 and get rid of the silly dirname(__FILE__) stuff :) Change-Id: Id9b2c9cd2e678197aa81c78adced5d1d31ff57b1
* Merge r86398 into the old wfWaitForSlaves. Update core calls.Platonides2011-04-201-2/+2
| | | | | | | | | | 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
* Part of bug 26280: added license headers to PHP files in maintenanceAlexandre Emsenhuber2010-12-161-0/+22
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/78508
* Whitespace fixup under tha maint directory.Mark A. Hershberger2010-12-041-2/+2
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/77711
* Stylize maintenance folder..Sam Reed2010-05-221-11/+11
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/66751
* 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
* In fixBug20757.php:Tim Starling2010-02-221-1/+1
| | | | | | | | | | | | | | | | | | | | | * 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
* (bug 20275) Fixed LIKE queries on SQLite backendMax Semenik2009-10-211-3/+3
| | | | | | | | * 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
* 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
* * Support for the "blobs table" LB config parameterTim Starling2009-02-031-4/+8
| | | | | | | | * Don't redefine the constructor Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/46752
* 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
* Reverted r42528. Links with href="#" make firefox scroll to the top of the ↵Tim Starling2008-10-251-6/+6
| | | | | | | page, regardless of onclick handler. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/42531
* Refactored and added orphan blob searchTim Starling2008-10-191-161/+268
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/42218
* Some initial work on external storage recompression. Committing now in case ↵Tim Starling2008-10-191-0/+200
I accidentally destroy it in a fit of refactoring. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/42215