Sam Reed
44696806fb
Remove some unused getting of non existent arguments
...
Documentation
2011-10-18 17:32:20 +00:00
Alexandre Emsenhuber
8aafc06999
Correct case in function call: wfGetDb() -> wfGetDB()
2011-05-19 17:31:32 +00:00
Platonides
62053ac8fd
Merge r86398 into the old wfWaitForSlaves. Update core calls.
...
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
2011-04-20 00:12:06 +00:00
Roan Kattouw
cdaa91bd27
Put the code for waiting for slave lag the new-and-improved way (using master position) in wfWaitForSlaves_masterPos(). I guess I should deprecate or re-do wfWaitForSlaves() and update callers, but I'm lazy
2011-04-19 14:52:11 +00:00
Chad Horohoe
26505b170a
Fix concern raised by Brion in r74108 (but has really existed since the 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().
2011-01-13 22:58:55 +00:00
Mark A. Hershberger
617a5b1e15
Whitespace fixup under tha maint directory.
2010-12-04 03:20:14 +00:00
Roan Kattouw
daa4d0b681
Add __METHOD__ to query() call in runBatchedQuery.php
2010-10-22 22:43:14 +00:00
Sam Reed
659778619c
Stylize maintenance folder..
2010-05-22 16:50:39 +00:00
Chad Horohoe
9b5196a68d
Fix child class visibility
2010-03-10 12:59:44 +00:00
Roan Kattouw
7c47f02b7c
Add maintenance script for running queries in batches. This is especially useful for executing large write queries (e.g. fixing user renames, clearing huge watchlists) on the WMF cluster; before, everyone wrote their own script for this when they needed it.
2009-12-12 15:38:03 +00:00