aboutsummaryrefslogtreecommitdiffstats
path: root/includes/filebackend
Commit message (Collapse)AuthorAgeFilesLines
* Merge "filebackend: cleaned up the FileBackend constructor"jenkins-bot2013-12-103-13/+26
|\
| * filebackend: cleaned up the FileBackend constructorAaron Schulz2013-12-033-13/+26
| | | | | | | | | | | | * Added some b/c code with deprecation warnings Change-Id: Ifceffbc0a37a223bcd7cd3dc60181fc85765bc46
* | filebackend: exception handling cleanupsAaron Schulz2013-12-077-37/+48
| | | | | | | | | | | | * Split out FileBackendException class and reduced direct use of MWException Change-Id: I325c1798b6d90972c12a5dccc37989af34d857f3
* | Made redis lock manager get EX/SH locks in one goAaron Schulz2013-12-071-74/+56
| | | | | | | | | | | | | | * Also made the TTLs properly per-lock as they should be * Also properly extract type/session from the keys in LUA Change-Id: I4608b7d551ac7aa4b3f7e2f5ce92b50662b1d4e4
* | Update ternary notationSiebrand Mazeland2013-12-042-2/+2
| | | | | | | | Change-Id: I553dd1d42477326848e6e40b824058b6790e2eb5
* | Merge "Revert "filebackend: cleaned up the FileBackend constructor""jenkins-bot2013-12-033-17/+13
|\|
| * Revert "filebackend: cleaned up the FileBackend constructor"Aaron Schulz2013-12-033-17/+13
| | | | | | | | | | | | | | | | Actually this messes with the implicit backend made for things like Math (when unconfigured), which uses the "new" operator. This reverts commit 1f129a22cbc8546b89dd4b49b2f567c1f758a968. Change-Id: I4c72c4f7c8b82e38df5496cf2b90fc9e19c40334
* | Merge "filebackend: cleaned up the FileBackend constructor"jenkins-bot2013-12-033-13/+17
|\|
| * filebackend: cleaned up the FileBackend constructorAaron Schulz2013-11-233-13/+17
| | | | | | | | | | | | | | | | | | * Moved some of the graph construction work to FileBackendGroup. This helps the code in not depending on the rest of MW so much. * Updated tests and FileBackendMultiwrite, which are the only things directly constructing FileBackend objects. Change-Id: I188a053c70ce088ce34613d5db40e6708e3ea9b7
* | Merge "More file backend docs"jenkins-bot2013-11-251-2/+25
|\ \
| * | More file backend docsAaron Schulz2013-11-241-2/+25
| | | | | | | | | | | | Change-Id: Ic81e298baa7cb21d0e494e6e2ed749e7f401f2b5
* | | Remove unused local variableSiebrand Mazeland2013-11-251-1/+1
|/ / | | | | | | | | | | Just count if there are array members Change-Id: I4f9cc8ba554404796822317fdb285e2f560d01dd
* | Merge "Remove leading underscore from methods _getResponse*"jenkins-bot2013-11-242-12/+12
|\ \ | |/ |/|
| * Remove leading underscore from methods _getResponse*Siebrand Mazeland2013-11-242-12/+12
| | | | | | | | | | | | Resolves CodeSniffer warning PSR2.Methods.MethodDeclaration.Underscore Change-Id: I6cf0fccb47a7e1070999ee510b4d3e0112c41cea
* | Add missing return valueSiebrand Mazeland2013-11-231-1/+1
| | | | | | | | | | | | According to the documentation, the return value should be a Status. Change-Id: Ib4c9730b50ef95ed1f0659f61554d7f442a017de
* | Fix various type and reference issuesSiebrand Mazeland2013-11-236-10/+11
| | | | | | | | Change-Id: Iced174d9f94faf80c5fa21e15fa6c81b6d8fa21c
* | Add missing type hint for $autoSyncSiebrand Mazeland2013-11-231-1/+1
| | | | | | | | Change-Id: I63deed0b2b9b6fc29f67c0b522987df156f685fa
* | Update documentation of file backend classesSiebrand Mazeland2013-11-2321-385/+487
| | | | | | | | Change-Id: I2113aecc53f1b361d9c276113bc0a9f7076cd21c
* | Update formatting of file backend classesSiebrand Mazeland2013-11-2221-29/+282
|/ | | | Change-Id: Ie69c324e2f1ea0b8a654adee06ebda494cebd10c
* Fixed spacingumherirrender2013-11-211-1/+0
| | | | | | | | - Removed trailing spaces in comments - Removed multiple empty lines - Removed space after object operator Change-Id: I9fd3256ab490c7cd2034de3fd94e6be6e6d6d8f2
* Removed excess profile callsAaron Schulz2013-11-161-6/+0
| | | | Change-Id: Idd57e8d7fff56c62a66c7fcaf4627b9096f0c363
* Fixed loading of stat cache entries into the wrong keyAaron Schulz2013-11-081-1/+1
| | | | | | | * Silly bug from 2afdc066f52b54faf63f9c980f7ef6a7841dd094 which caused HEAD requests. Probably missed in local testing due to memcached. Change-Id: I3b82ffe964e252eafa5254f7752e5ba45b49ba0e
* filebackend: improved "adviseStat" performanceAaron Schulz2013-11-082-45/+54
| | | | | | | | | | | * Use the normal page size instead of limiting it way down to the cache size. Track the stat information in the pages and load into into the stat cache as entries are accessed. This should also be less prone to evictions causing HEAD requests (or memcached hits). * Also bumped CACHE_CHEAP_SIZE up to 500. * Fix a few doc bits Change-Id: I8d44a072e7bcc56c83d8d9c8c9ac9864530bccf8
* Handle Swift JSON listings with unqualified timestampsAaron Schulz2013-11-061-4/+19
| | | | | | * Throw errors next time invalid timestamps are encountered Change-Id: Ie5d6c63863cacbf7dc3bc3f408b395bdce859db9
* filebackend: path normalization fixesAaron Schulz2013-11-061-37/+32
| | | | | | | * Only normalize file path parameters, not other ones * Actually use the normalized paths instead of throwing it away for the raw paths Change-Id: I8d36735359f804371e2beae64e5ec6f792d87b27
* Replace php_sapi_name() with PHP_SAPIReedy2013-10-251-1/+1
| | | | Change-Id: I222789cacaa2653c4dac62708ce228674c90af4c
* Fixed broken quickDescribe() methodAaron Schulz2013-10-241-1/+1
| | | | Change-Id: Ic68f483c4008ff6ae8c4accef2f9d1f180a5d377
* Remove all instances of the word "iff"Tim Starling2013-10-231-1/+1
| | | | | | | | | | | | | | It's elitist mathematical jargon. In all cases dealt with here, it adds no additional meaning compared to "if", beyond what was already obvious from context. Thus, its only purpose is to smugly demonstrate that the author attended their second-year mathematics classes, at the expense of causing confusion for everyone who doesn't have such a background. If you really think you need to convey extra information beyond what "if" gives you, the English language contains plenty of devices for doing so, without resorting to neologisms. Change-Id: Iae21095d02ec2935c10e94f532235c2671c115b1
* lockmanager: QuorumLockManager subclasses can get EX/SH locks at onceAaron Schulz2013-10-225-103/+170
| | | | | | | * Also reduced rount trips in doUnlockingRequestBucket(). * Also removed some redundant doc comments. Change-Id: I81878e92332509bd7fda9ddeef950b774f5b015d
* Added ceph commentAaron Schulz2013-10-211-1/+1
| | | | Change-Id: Ice9efd7ada10e1896afd0185a6305f6852e9605d
* filebackend: try to combine SH and EX lock acquisitionAaron Schulz2013-10-183-27/+24
| | | | | | | | * getPathsToLockForOpsInternal() now returns an array in the format LockManager can use * Also fixed getScopedLocksForOps() for multiwrite backend (it should accept proxy backend paths) * Updated getScopedFileLocks() docs Change-Id: Id0dc50c159c5fbc8fca10a9e46c5be23afcb3e9a
* Factored out a small filebackend getContentType() functionAaron Schulz2013-09-252-14/+33
| | | | Change-Id: I221483ab4a0ed36ea34c19db1740dfaecf223677
* filebackend: normalize paths used in lockingAaron Schulz2013-07-061-0/+9
| | | | Change-Id: I0d823e4d20c89a22ad89a6af8739075f7a10c235
* Removed some inappropriate global state from FSFileAaron Schulz2013-06-211-13/+4
| | | | Change-Id: I48bc82eab486c119ed1ac7812d2da97490088cd4
* Fixed doc typoAaron Schulz2013-06-191-1/+1
| | | | Change-Id: I158c794539036d48a34dec9f2bbd202752da4fa4
* Merge "filebackend: throw exceptions during file iteration."jenkins-bot2013-06-193-11/+27
|\
| * filebackend: throw exceptions during file iteration.Aaron Schulz2013-06-153-11/+27
| | | | | | | | | | | | | | * This lets calling code be far more robust rather than just silently ignoring entries due to some temporary problem. Change-Id: I3ce2ae34f6cff5e40a80b8da5688503a387ce2a6
* | Switched FileBackendStore to use ProfileSection when possible.Aaron Schulz2013-06-191-131/+27
| | | | | | | | | | | | * Also removed outer profiling layer. Change-Id: Ice3b921fe0c9981ac16f005d66a78bf4f4a5c601
* | Removed redundant doc comments.Aaron Schulz2013-06-151-107/+0
|/ | | | Change-Id: Iced16c6d32ef0e4d58376ed3c092a500ec917446
* Cleaned up variable/type order in docs.Aaron Schulz2013-06-1310-104/+114
| | | | | | * A few other minor doc cleanups and obvious type hints. Change-Id: I454fad0c1942068b4f3632ebd1b605bfbb9dfe7c
* Removed redundant documentation for some methods.Aaron Schulz2013-06-121-80/+0
| | | | Change-Id: I72f132c0b6e9a300efff6c15957f163d84e7d9c2
* Removed redundant documentation for some methods.Aaron Schulz2013-06-123-233/+0
| | | | Change-Id: Iad422716f6796cc4b69405182f4a74daa0c93663
* Merge "Made SwiftFileBackend::loadObjectListing() populate stat entries in ↵jenkins-bot2013-06-071-2/+6
|\ | | | | | | reverse order."
| * Made SwiftFileBackend::loadObjectListing() populate stat entries in reverse ↵Aaron Schulz2013-05-191-2/+6
| | | | | | | | | | | | order. Change-Id: I07bf9c852729d65cee72364ca3249e31936d0562
* | [LockManager] Made it easier to get both SH and EX locks at once.Aaron Schulz2013-06-052-24/+106
|/ | | | | | | | * This also makes it possible for subclasses to optimize this case. * Added a timeout parameter to ScopedLock::factory(). * Cleaned up a few bits of documentation. Change-Id: Id3e9cf01f25ab498ea00d87ffb6d00aa8b05052b
* [FileBackend] Avoid concurrency for the 1 op case in ↵Aaron Schulz2013-05-151-1/+1
| | | | | | doQuickOperationsInternal(). Change-Id: I6526d3b77fc078d80a0fb537d504a7fabcbb4c41
* docs: Remove odd colons after @todoTimo Tijhof2013-05-151-1/+1
| | | | | | | | | | Most were this way already: https://doc.wikimedia.org/mediawiki-core/master/php/html/todo.html Ran a find/replace on the odd ones. Also made them all lower case. Change-Id: I70c6a69344ddebc603e9a1c1d87e3cc4f4f4c560
* [FileBackend] Moved short-circuit check from 6b1194b9 up to FileBackend.Aaron Schulz2013-05-102-8/+6
| | | | Change-Id: I57566a1779f353c18d96c59c47112c753aea6b90
* [FileBackend] Optimize the case were no operations are provided.Aaron Schulz2013-05-101-0/+8
| | | | Change-Id: Iaf858ce2e8b21e031d27b984029f0424518201af
* [FileBackend] Cleaned up resyncFiles() and added conservative resync option ↵Aaron Schulz2013-05-091-9/+30
| | | | | | to FileBackendMultiWrite. Change-Id: I4fd96fda71fc1aba44104241a8329e95ba5cdda7