| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
Change-Id: I8ed3f3bad954dd03bd80d23954e31ee5429c04fe
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
Change-Id: I28b22bd8aad30ef0323cdc897dce1de9849b1b87
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
| |
This is fixing a regression caused by r90549.
Patch by christian at quelltextlich dot at
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/112793
|
|
|
|
| |
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/112339
|
|
|
|
| |
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/112332
|
|
|
|
|
|
|
| |
Documentation
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/100131
|
|
|
|
|
|
|
| |
Add/normalise some more return statements
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/99938
|
|
|
|
|
|
|
| |
__METHOD__.
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/96718
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/96479
|
|
|
|
| |
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/91243
|
|
|
|
| |
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/90549
|
|
|
|
|
|
|
|
|
|
|
| |
* 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
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/85040
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/78508
|
|
|
|
| |
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/77711
|
|
|
|
| |
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/77495
|
|
|
|
| |
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/74744
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
Add some braces
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/73377
|
|
|
|
|
|
|
| |
Move variable in languages/classes/LanguageKu.php into commented code (used in comment)
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/71047
|
|
|
|
|
|
|
| |
Remove unused array
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/70781
|
|
|
|
| |
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/70686
|
|
|
|
| |
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/69920
|
|
|
|
| |
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/66751
|
|
|
|
|
|
|
| |
there.
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/63899
|
|
|
|
|
|
|
|
|
| |
* 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
|
|
|
|
|
|
|
| |
corruption as in bug 20757 or bug 22624.
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/63304
|
|
|
|
| |
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/62981
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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
|
|
|
|
|
|
|
| |
Not tested yet.
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/62688
|
|
|
|
| |
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/62671
|
|
|
|
| |
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/62351
|
|
|
|
|
|
|
| |
resulting statistics about storage types.
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/62300
|
|
|
|
| |
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/62148
|
|
|
|
| |
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/62125
|
|
|
|
| |
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/62124
|
|
|
|
|
|
|
| |
improved code reuse.
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/60162
|
|
|
|
|
|
|
|
| |
* 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
|
|
|
|
| |
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/56338
|
|
|
|
|
|
|
| |
out early if blob_orphans doesn't exist. dumpRev could use a nice description.
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/55403
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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
|
|
|
|
| |
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/50068
|
|
|
|
| |
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/49789
|
|
|
|
| |
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/49247
|