| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
| |
creation/updates (for performance).
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/113441
|
|
|
|
|
|
|
| |
as well as what FileRepo is essentially expecting when using the 'force' option (it assumes fatals are for total batch failures, not just partial ones). The relevant documentation was also improved.
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/113412
|
|
|
|
|
|
|
| |
r113758, r113775, r113892
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/114015
|
|
|
|
| |
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/113235
|
|
|
|
|
|
|
| |
r113039, r113046, r113099
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/113157
|
|
|
|
| |
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/113040
|
|
|
|
|
|
|
| |
r112534, r112538, r112567
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/112647
|
|
|
|
| |
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/111770
|
|
|
|
| |
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/111175
|
|
|
|
|
|
|
| |
Ping r110922
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/110991
|
|
|
|
|
|
|
| |
* Added unit tests for using getFileList() iterators twice.
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/110968
|
|
|
|
|
|
|
| |
wikis large enough to need sharding would probably have sane 404 handling anyway, which avoids the need to hit a bunch of containers in one request anyway (like rendering thumbnails on parse).
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/110960
|
|
|
|
| |
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/110938
|
|
|
|
|
|
|
| |
fix r110923
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/110934
|
|
|
|
| |
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/110929
|
|
|
|
| |
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/110928
|
|
|
|
|
|
|
|
|
| |
also nicely align some variable assignements
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/110927
|
|
|
|
| |
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/110926
|
|
|
|
| |
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/110925
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The comment block seems to indicate that containerPaths should only be used
for backwards-compatibility, which implies it is optional.
The following code generated a notice:
$fsBackend = new FSFileBackend( array(
'name' => 'foo',
'lockManager' => 'fsLockManager',
'basePath' => '/tmp/foo',
);
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/110924
|
|
|
|
|
|
|
|
| |
rtrim() can be given a list of character to strip from a given string.
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/110923
|
|
|
|
|
|
|
| |
FSFileBackend. This makes file op batches a bit more robust.
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/110922
|
|
|
|
|
|
|
| |
commented out the invocation of it for now.
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/110812
|
|
|
|
|
|
|
|
|
|
| |
* Added simple getReadOnly()/getReadOnlyReason() functions.
* Allow directly passing a LockManager object into __construct(), useful for testing.
* Fixed bug in FSFileBackend were creating empty files would result in a failing status.
* Added more file stat unit tests.
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/110731
|
|
|
|
|
|
|
| |
FSLockManager::doLock(). This was from before referencing counting was used.
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/110714
|
|
|
|
|
|
|
| |
backend name can have $1 or such. Also added comments to discourage such characters in backend names.
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/110671
|
|
|
|
|
|
|
| |
transform().
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/110641
|
|
|
|
| |
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/110534
|
|
|
|
| |
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/110518
|
|
|
|
| |
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/110462
|
|
|
|
|
|
|
| |
* Binary mode on php://output, for consistency.
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/110459
|
|
|
|
|
|
|
| |
recognize FileRepo-style deleted zone hash paths (which are different than for the other zones).
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/110435
|
|
|
|
|
|
|
| |
* Removed redundant code from r110259 and added a comment to isValidContainerName().
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/110269
|
|
|
|
|
|
|
| |
FileBackend. Callers doing things like FileBackend::extensionFromPath() are now more proper.
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/110261
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Moved some public static functions from FileBackend to FileBackendBase as the later defines the public API.
* Made splitStoragePath() return null if the backend or container name is empty.
* Made normalizeContainerPath() kill leading directory separators.
* Added more unit tests and made some documentation tweaks.
In FSFileBackend:
* Added resolveContainerName() to disallow '.' a container name, since this would cause a traversal.
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/110259
|
|
|
|
|
|
|
|
|
|
|
| |
and inexpensive entries. Put the local reference FSFile object cache in the former since it takes up disk space on /tmp.
* Removed FileBackendBase::resolveWikiId(); doesn't really work well with FileBackendMultiWrite and the functionality is best handled in resolveContainerName(). Follows-up r108303.
* Gave FileOp::doAttempt() a default implementation (a no-op) to be more libertarian.
* Some documentation tweaks.
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/110253
|
|
|
|
|
|
|
| |
metadata (sha1) on the fly. This can be useful if files were imported from some script that doesn't set the metadata.
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/110230
|
|
|
|
|
|
|
|
|
|
|
| |
Fix trailing whitespace
Add/Improve documentation
Explicit member variable declaration
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/110218
|
|
|
|
|
|
|
| |
available (PHP >= 5.3). Apparently, some versions of PHP 5.3 have different defaults that others for SKIP_DOTS.
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/110163
|
|
|
|
|
|
|
|
|
| |
iterator settings.
* Also made the iterator keys (e.g. in foreach) more consistent by being integers as the other backend iterators do.
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/110159
|
|
|
|
| |
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/110154
|
|
|
|
| |
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/110153
|
|
|
|
| |
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/110127
|
|
|
|
|
|
|
|
|
|
| |
exist in 5.2.
Either this needs to be fixed to really support 5.2 or we'll bumping the minimum version to 5.3 this release.
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/110126
|
|
|
|
|
|
|
| |
Fix whitespace
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/110125
|
|
|
|
| |
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/110124
|
|
|
|
|
|
|
|
|
| |
protected function substPaths( $paths, FileBackend $backend ) {
Pass $backend from the for loop
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/110123
|
|
|
|
| |
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/110122
|
|
|
|
|
|
|
|
|
| |
* Added normalizeStoragePath() function. Use it for normalizing paths in the stat cache. This way, if someone clears a non-normal form of path from the cache, it will actually work as expected.
* Removed 'abstract' flag from FileBackendBase::clearCache().
* Documentation tweaks.
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/110084
|
|
|
|
|
|
|
| |
checks use the stat cache, typically already set in FileOp::doPrecheck(). FileBackendBase::doOperationsInternal() already clears the cache after locking (and before FileOp::attemptBatch) for consistency.
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/110073
|