In FileBackend:
authorAaron Schulz <aaron@users.mediawiki.org>
Sun, 8 Jan 2012 08:40:00 +0000 (08:40 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Sun, 8 Jan 2012 08:40:00 +0000 (08:40 +0000)
commit360e3376bf2d1cd460d849f5e316a5ccf975b344
tree0863056280b69df42b6e31eea0ac6d5ecf1ce0a9
parent6c474f0c073f0dfc0159765ff195de3efa4a34cf
In FileBackend:
* Added getFileSize()/getFileStat() functions. Refactored some functions to use the stat function for better reuse and caching/consistency.
* Refactored streamFile() to allow for subclasses to avoid local file copying with less duplication. Also make last-modified check actually work since we always get the timestamp of the original file.
* Renamed 'ignoreErrors' parameter to 'force'.
In FileBackendMultiWrite:
* Simplified how read ops are done (use 'master' backend for consistency).
* Added consistency check to doOperationsInternal() to check if the files are synced.
* Various fixes after testing.
In StreamFile:
* Split out prepareForStream() function from stream() in StreamFile for code reuse.
In FileBackendTest:
* Properly cover FileBackendMultiWrite in tests.
* Various test improvements.
includes/StreamFile.php
includes/filerepo/FileRepo.php
includes/filerepo/backend/FSFileBackend.php
includes/filerepo/backend/FileBackend.php
includes/filerepo/backend/FileBackendMultiWrite.php
includes/filerepo/backend/FileOp.php
includes/filerepo/file/File.php
languages/messages/MessagesEn.php
maintenance/language/messages.inc
tests/phpunit/includes/filerepo/FileBackendTest.php