aboutsummaryrefslogtreecommitdiffstats
path: root/includes/filebackend
Commit message (Collapse)AuthorAgeFilesLines
...
* [FileBackend] Added "adviseStat" option for the "listing followed by stat" case.Aaron Schulz2013-05-093-19/+71
| | | | | | | | * Used this parameter to speed up copyFileBackend.php. * Also added mtime checks to copyFileBackend.php and a few cleanups. * Also fixed some incorrect getDirListPageInternal/getFileListPageInternal docs. Change-Id: I424ef238f7adf4cf1f33b74e3a4e187dcb328a99
* Merge "Remove hphpc support and deprecate related functions"jenkins-bot2013-05-081-1/+1
|\
| * Remove hphpc support and deprecate related functionsTim Starling2013-05-091-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | hphpc has been superseded by hhvm, so support for hphpc is no longer needed. * Continue to use Preprocessor_Hash under HipHop since it is still faster under hhvm * Keep $wgCompiledFiles for now, so that wikihiero doesn't give an error before Ic9d1e795 is merged * Migrate the run-server script and associated configuration file to hhvm. Enable EnableStaticContentFromDisk since it doesn't seem ridiculously inefficient at first glance. Run from $IP rather than $IP/.. since hhvm is apparently not picky about sourcing files from outside of the current directory. Change-Id: Ic3e769f1fbad4f7ad26dd819406796fee48c6b45
* | [FileBackend] Process cache negatives for SHA1 on file stat.Aaron Schulz2013-05-071-0/+2
|/ | | | Change-Id: Idc9f82309d52818acf57adc9c4eb04370a7b422a
* Fix visibility of error handlersJakub Vrana2013-05-041-1/+2
| | | | | | | | | I've hit this error when $wgDBuser didn't have access to $wgDBname. I've also checked all other error handlers in core. An alternative approach would be to use an anonymous function but it doesn't support $this until PHP 5.4 so it would be messier. Change-Id: I89db2e8c88b84d9b53c4b828ac0208b05a3d3783
* Fixed spacing in actions/cache/filebackend/filerepo/job folderumherirrender2013-04-209-38/+42
| | | | | | | Added spaces before if, foreach Added some braces for one line statements Change-Id: Idb93d34e314e5f314223b79208968d6bcd30c40e
* [FileBackend] Made stat cache factor in last-modified time.Aaron Schulz2013-04-191-5/+11
| | | | | | | | * This should lesson the chance of consistency problems if there is any memcached flapping. * Also cleaned up some documentation. Change-Id: I89401892c7e848fcff0b093eaa861dfe02387a5c
* [FileBackend] Disallow files ending in / and clarified some docs.Aaron Schulz2013-04-191-2/+8
| | | | Change-Id: I162ca34fe9f92d862345004bd184013531da9e8d
* [LockManager] Added a RedisLockManager class.Aaron Schulz2013-04-182-2/+257
| | | | Change-Id: I7ade74eb307a5075533f36836768af60f106a6b9
* [FileBackend] Simplified the shard list iterator to use AppendIterator and ↵Aaron Schulz2013-04-171-128/+38
| | | | | | FilterIterator. Change-Id: I22f79447b1edec4fa6d7fc06d67f3f831a484f16
* Added/Removed spaces around string concatenationumherirrender2013-04-135-10/+10
| | | | | | | | | And added/removed spaces around some other tokens, like +, -, *, /, <, >, =, ! Fixed windows newline style Change-Id: I0b9c8c408f3f6bfc0d685a074d7ec468fb848fc8
* Add missing wfProfileOut before throwing an exceptionumherirrender2013-04-081-0/+4
| | | | Change-Id: I1d830da0597f19efd0b2ae48642389975e736e23
* Merge "[FileBackend] Clarified the noAccess/noListing docs a bit."jenkins-bot2013-04-031-1/+8
|\
| * [FileBackend] Clarified the noAccess/noListing docs a bit.Aaron Schulz2013-04-011-1/+8
| | | | | | | | Change-Id: I3f008e3d1931423fc3c73af587d657040fdffe83
* | [LockManager] Added timeout to the lock() function.Aaron Schulz2013-04-021-2/+13
| | | | | | | | Change-Id: I32f97b813fc6036b2774d67c14c574420e7a1437
* | Merge "Use canonical class name."jenkins-bot2013-04-021-1/+1
|\ \ | |/ |/|
| * Use canonical class name.Platonides2013-04-021-1/+1
| | | | | | | | Change-Id: I7dc9980d334bc5ad6421135d713d890a8588281c
* | Fixed small doc typo.Aaron Schulz2013-03-311-1/+1
| | | | | | | | Change-Id: Ia2a86e1c8126bde48c17f0c8f56905ed325d8be1
* | Clarified FileBackend::doOperations() docs a bit more.Aaron Schulz2013-03-251-8/+9
|/ | | | Change-Id: Ie0b131c1a09bc75be39bbb7e9c87b8d3221a0fc5
* [FileBackend] Cleanup behavior for coping/moving a file over itself.ASchulz2013-03-254-34/+58
| | | | | | | | | | | | | | | * Previously, for doQuickOperations(), the default move function would just delete the file if it was moved over itself. In fact, the php-cloudfiles bindings have this same bug in its move function. * For both copy and move, when the source and destination are the same path, make sure that the headers get updated as specified. This only applies for the 'overwrite' case (not 'overwriteSame'). * Fixed bad status for doQuickOperations() when copying a file over itself using FSFileBackend. * Clarified the documentation for 'overwriteSame' option. * Renamed destSameAsSource to overwriteSameCase in FileOp for clarity. Change-Id: I3f609d9413795c654de27958b1e807b1fc785f31
* fix some spacingumherirrender2013-03-251-1/+1
| | | | | | | | | | | * Removed spaces around array index * Removed double spaces or added spaces to begin or end of function calls, method signature, conditions or foreachs * Added braces to one-line ifs * Changed multi line conditions to one line conditions * Realigned some arrays Change-Id: Ia04d2a99d663b07101013c2d53b3b2e872fd9cc3
* A few minor doc group tweaks.Aaron Schulz2013-03-181-1/+0
| | | | Change-Id: I18a8d733b3dbaa925a676c881225a63e90ff2f05
* Merge "[FileBackend] Replaced redundant "disposition" param with "headers"."jenkins-bot2013-03-184-53/+55
|\
| * [FileBackend] Replaced redundant "disposition" param with "headers".Aaron Schulz2013-03-124-53/+55
| | | | | | | | | | | | | | * Deprecated the "disposition" parameter. * This also adds "headers" to to copy/move operations. Change-Id: I63faa1dbbadb42c401b6ed4ac58776dc336ba3ab
* | [LockManager] Refactor lock TTL code to base class.Aaron Schulz2013-03-182-7/+14
|/ | | | | | * Also made the TTL configurable. Change-Id: I713979267fe7bd92ac6cd5fe4d4168d20e539c75
* [FileBackend] Fixed "ignoreMissingSource" bug in multiwrite backend.Aaron Schulz2013-03-121-1/+7
| | | | | | | * Beefed up unit tests for this case and other "ignoreMissingSource" cases such as when the source container or parent directory do not exist. Change-Id: Iea6dae2424edfd0c4367e5cff606c09a4e8a865b
* [FileBackend] Suppress missing container errors with "ignoreMissingSource".Aaron Schulz2013-03-121-3/+9
| | | | Change-Id: I2b9f4764c4938dcee61f17c31ed4d4b84fbfbcb2
* [LockManager] Various fixes to lock managers.Aaron Schulz2013-03-124-54/+87
| | | | | | | | | | | | * Improved handling of corrupt values in cache for MemcLockManager. Also improved the use of Status warnings a bit. * Removed broken special-case handling for SH->EX lock escalation. Updated MysqLockManager to compensate. * Made FSLockManager only use one handle per file, which is more efficient and avoids errors when escalating locks (SH->EX). * Made lock unit tests have more useful output on failure. Change-Id: Ib304712fa2b6b3fd02bfc1b08b6f238c771960c2
* Reformatted some array parameter docs.Aaron Schulz2013-03-113-34/+34
| | | | Change-Id: Ie9eefd3693e82f483a9ef0da3f972452ae7bf49e
* Fixed @param tags to conform with Doxygen format.Tyler Anthony Romeo2013-03-1116-133/+133
| | | | | | | | | | | Doxygen expects parameter types to come before the parameter name in @param tags. Used a quick regex to switch everything around where possible. This only fixes cases where a primitve variable (or a primitive followed by other types) is the variable type. Other cases will need to be fixed manually. Change-Id: Ic59fd20856eb0489d70f3469a56ebce0efb3db13
* Kill off numerous unused variablesReedy2013-03-086-25/+23
| | | | Change-Id: I7039f1328f37ee669b694f73ee282602186bffd1
* Merge "[FileBackend] Added a "ttl" option to getFileHttpUrl()."Reedy2013-03-072-2/+4
|\
| * [FileBackend] Added a "ttl" option to getFileHttpUrl().Aaron Schulz2013-03-062-2/+4
| | | | | | | | Change-Id: Ifc7b9c012276ed1f1e436ffafbd5615689680054
* | fix some spacingumherirrender2013-03-074-6/+6
|/ | | | | | | | Added/removed spaces around logical/arithmetic operator Reduced multiple empty lines to one empty line Removed wrong tabs before comments at end of line Removed too many spaces in assigments Change-Id: I2bba4e72f9b5f88c53324d7b70e6042f1aad8f6b
* [LockManager] Added ScopedLock::release function.Aaron Schulz2013-03-051-0/+13
| | | | | | * Added more lock unit tests. Change-Id: Ic359307cf26cfb621ae8d2db867801735a375dde
* Added --postime option syncFileBackend.Aaron Schulz2013-03-032-0/+42
| | | | | | * Useful when starting positions are made after copying started. Change-Id: I34d996594753f7bc4449dac96a4822242c1897ee
* Merge "[FileBackend] Process cache negatives for file SHA1 function."jenkins-bot2013-03-011-4/+1
|\
| * [FileBackend] Process cache negatives for file SHA1 function.Aaron Schulz2013-02-261-4/+1
| | | | | | | | Change-Id: I2a6b801cd97e8ee1a678a43d5f6d01d3e9603637
* | Several minor fixes.Platonides2013-02-281-0/+1
| | | | | | | | | | | | | | | | - Add missing wfProfileOut( __METHOD__ ); in FSFile.php [13ae6bfb] - Remove unused $IP globals in ApiUpload.php [fbf34d84] - Remove empty statement in EditPage.php [375687ed] Change-Id: I3b0506e3c8fc89b352a0d72f18e51a1223af0e9b
* | Only run sha1_file once per file in FSFileMarius Hoch2013-02-281-8/+22
|/ | | | | | | | This shouldn't harm as we don't use this and then alter the file. But it can kick in useful with extension that need the sha1 of files (like AbuseFilter). Change-Id: Ied2ac0397266a5ffd27da02ef6448b64c12fad86
* Fixed documentation typo.Aaron Schulz2013-02-201-1/+1
| | | | Change-Id: I02c3944efc63508c7aa798b3079167b85c760454
* [LockManager] Created PostgreSqlLockManager class.Aaron Schulz2013-02-152-70/+128
| | | | | | | * Made DBLockManager abstract instead of a hacky blocking implementation. With a PG and MySQL option, that option is no longer useful. Change-Id: I939551bd2283608f2d017d9d2fca1334a533c005
* Bug 40167 - Filename cannot be empty in SwiftFileBackendReedy2013-02-121-0/+2
| | | | | | | As we're evaluating the output, we can just suppress these warnings Change-Id: I5b0af085d163824a7406b675eb0decc617ef4b4c
* Merge "[FileBackend] Documentation tweaks."jenkins-bot2013-02-052-8/+15
|\
| * [FileBackend] Documentation tweaks.Aaron Schulz2013-02-042-8/+15
| | | | | | | | Change-Id: I63b03207a18c7523675a4929031dc560a2d8b5f8
* | Bug 43343 add zone "transcoded" for audio/videoJan Gerber2013-02-051-0/+4
|/ | | | | | | to allow different storage strategies for thumbnails and audio/video derivatives, add a new zone "transcoded". Change-Id: I204c843dae4966b02f4807f15e6b0bac672f34dc
* Merge "[FileBackend] Set ignore_user_abort() in file operations."jenkins-bot2013-02-041-0/+21
|\
| * [FileBackend] Set ignore_user_abort() in file operations.Aaron Schulz2013-02-011-0/+21
| | | | | | | | | | | | | | | | * This reduces the change of partial operations. WMF sites already set ignore_user_abort() in configuration, but this makes sure that it always happens during file changes. Change-Id: I702c27fc3c19aca0cdd39b793a3250ead40bfe71
* | (Bug 37957) Replace php_sapi_name() with PHP_SAPIOri Livneh2013-02-041-1/+1
| | | | | | | | | | | | | | | | | | | | The PHP_SAPI constant has been available since PHP 4.2.0. It's more concise to use the constant and has less overhead than a function call. Furthermore, PHP_SAPI rhymes with "happy", whereas "php_sapi_name" rhymes with "lame". QED, etc. Change-Id: Ie8c121cb8fcef50536af8d3f66723b458f0bf9af
* | fix some spacingumherirrender2013-02-042-4/+4
|/ | | | Change-Id: I88e73d47a552918880514d88a876296a6cb80d88