aboutsummaryrefslogtreecommitdiffstats
path: root/includes/libs
Commit message (Collapse)AuthorAgeFilesLines
* Merge "A few doc comment fixups"jenkins-bot2017-12-044-9/+5
|\
| * A few doc comment fixupsTim Starling2017-12-044-9/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Remove some creation dates, they are not protected by GPL * Remove duplicate @defgroup API * Remove @ingroup from some @file doc comments on class files. It is not useful to list class files alongside classes in the doxygen module menu. Add @ingroup to some more class files that had @ingroup on their file, that was probably the author's intent. * In PackedOverlayImageGallery, use the file comment as a class comment * Don't put @defgroup and @file in the same comment. @defgroup makes the whole doc comment describe the group. * Instead of putting AnsiTermColorer in two groups, use hierarchical groups. Change-Id: If54f6e0b2bc1ea6de42045885cf836ee67b8e961
* | Merge "objectcache: various cleanups to WANObjectCache"jenkins-bot2017-12-041-11/+10
|\ \ | |/ |/|
| * objectcache: various cleanups to WANObjectCacheAaron Schulz2017-12-011-11/+10
| | | | | | | | Change-Id: Ibc3c7e59b47b4f9b982176f81dff9f81d99de460
* | Merge "xmp: Lower severity of XMP parse failure log events"jenkins-bot2017-12-031-1/+1
|\ \
| * | xmp: Lower severity of XMP parse failure log eventsBryan Davis2017-12-021-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | Errors when parsing XMP information blocks broadly indicate that the file is somehow malformed. This is generally a content issue rather than an operational issue. Bug: T118799 Change-Id: I3c7992343f28db75cd9ec0701c1eceebf6db2d08
* | | Lower DatabaseMysqlBase::lock logging to INFOAaron Schulz2017-12-031-1/+1
| |/ |/| | | | | | | | | | | | | Whether the lock() acquisition failing is a huge problem depends on what the caller is doing. Let the caller do any logging it needs. Bug: T180793 Change-Id: I3d05138d312d8b973df153bb511e69619d663c9d
* | objectcache: add example use case to WANObjectCache::getMultiCheckKeyTime()Aaron Schulz2017-12-011-1/+50
| | | | | | | | Change-Id: I874070d2f770be7f9e06c381b2413f6e133418b8
* | objectcache: add WANObjectCache::getMultiCheckKeyTime methodAaron Schulz2017-12-011-14/+43
| | | | | | | | Change-Id: I5675fabc5aa70f72659ce02d68caae88be20e06d
* | Merge "objectcache: Run preemptive WAN cache refreshes post-send"jenkins-bot2017-12-011-4/+29
|\ \
| * | objectcache: Run preemptive WAN cache refreshes post-sendAaron Schulz2017-12-011-4/+29
| | | | | | | | | | | | | | | | | | This keeps HTTP request time consistent in case of expensive keys Change-Id: I0746fde29a6e2f27d1b92f1af599c741d5972f46
* | | Merge "objectcache: fix a few documentation mistakes"jenkins-bot2017-12-011-1/+2
|\ \ \ | |/ / |/| |
| * | objectcache: fix a few documentation mistakesAaron Schulz2017-12-011-1/+2
| | | | | | | | | | | | | | | | | | | | | * Fix useInterimHoldOffCaching() description * Mention when staleTTL and graceTTL where added Change-Id: Iea24b77f6816251e9dac814dc57f6a44382a3cea
* | | Merge "objectcache: Add @ingroup to RedisBagOStuff"jenkins-bot2017-12-011-1/+4
|\ \ \ | |/ / |/| |
| * | objectcache: Add @ingroup to RedisBagOStuffTimo Tijhof2017-11-301-1/+4
| | | | | | | | | | | | | | | | | | | | | Was missing from "Cache" group, as well as from the cross-component "Redis" group. Change-Id: I52ebc93cf472a4acc383742e0ea5c15c5a6db537
* | | objectcache: Make WANObjectCache interim caching not interfere with ↵Aaron Schulz2017-11-301-0/+30
|/ / | | | | | | | | | | | | | | | | | | ChronologyProtector Also removed useless line from testLockTSE(). That would have needed to be using $this->internalCache and those locks are freed immediately. Bug: T180035 Change-Id: Ida1a923f779aaf8410da76643457d2200da6cb20
* | Merge "Make ChronologyProtector actually use cpPosTime cookies"jenkins-bot2017-11-302-2/+4
|\ \
| * | Make ChronologyProtector actually use cpPosTime cookiesAaron Schulz2017-11-302-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Setup.php was only injected the value from $_GET. LBFactory used to check both before 0e5cd18b74d83c50, with the cookie check left in LBFactoryMW. After d175b391ae2a7, LBFactoryMW class switched to the default LBFactory method for making a ChronologyProtector instance, so the cookie check was lost there too. This means that an HTTP GET request due to a redirect from a POST request will still make sure the DB position store is up-to-date. This only matters is that store uses replication (e.g. cross DC). Also refactor LBFactory handling of the cpPosTime URL parameter. Change-Id: Ie5744577609f4c193cacd71334f92b30f02e3846
* | | Merge "Add missing @throw tags to IDatabase/Database"jenkins-bot2017-11-302-19/+38
|\ \ \
| * | | Add missing @throw tags to IDatabase/DatabaseAaron Schulz2017-11-302-19/+38
| |/ / | | | | | | | | | Change-Id: I235c5beacce38e9121fb1db94ce410d010356fcf
* | | Merge "Use parent function in mysql DB class in getWeightScale()"jenkins-bot2017-11-301-1/+1
|\ \ \
| * | | Use parent function in mysql DB class in getWeightScale()Aaron Schulz2017-11-301-1/+1
| |/ / | | | | | | | | | | | | | | | May as well keep this case in sync with the base class Change-Id: I4c62c3247ec3372c6a274b889fac1b7a883f5cf5
* | | Merge "Database: Fix degenerate parenthesized joins"jenkins-bot2017-11-301-3/+13
|\ \ \
| * | | Database: Fix degenerate parenthesized joinsBrad Jorsch2017-11-291-3/+13
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The SQL standard supports parenthesized joins like a JOIN (b JOIN c ON (...)) ON (...) But it doesn't support parenthesizing a single table name, i.e. a one-table "join", like a JOIN (b) ON (...) Detect the degenerate single-table case and omit the parentheses. Bug: T181674 Change-Id: I82cacd80465092aa67ff19bdcfd6682001bf12ab
* | | Merge "Disallow setting DBO_IGNORE in Database for sanity"jenkins-bot2017-11-291-3/+14
|\ \ \
| * | | Disallow setting DBO_IGNORE in Database for sanityAaron Schulz2017-11-291-3/+14
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In the off chance something called this, it would break all sorts of code that expects that either query result functions either succeed or throw an error. Callers are not expected to have to check if the result of a query is meaningful or false due to an error. Change-Id: I0b4fe1403f55a399ffd40817ed12f857087d6f83
* / / objectcache: use INTERIM_KEY_TTL constant in WANObjectCache for readabilityAaron Schulz2017-11-281-1/+4
|/ / | | | | | | Change-Id: I13936397def11a13849fe14491b752dd797f6759
* | Merge "objectcache: only give current format keys getWithSetCallback() ↵jenkins-bot2017-11-281-0/+3
|\ \ | | | | | | | | | callbacks"
| * | objectcache: only give current format keys getWithSetCallback() callbacksAaron Schulz2017-11-281-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Callback code that happens to make use of $oldValue might not be able to handle missing, new, or changed fields due to key version changes. Overhaul testGetWithSetCallback_versions() to be cleaner and cover the case of unversioned => versioned keys. Change-Id: If108a73078c530c985d30bdadcbfa9ddd53dc2be
* | | Merge "Clean up formatting of SwiftFileBackend::sanitizeHdrsStrict()"jenkins-bot2017-11-281-4/+4
|\ \ \ | |/ / |/| |
| * | Clean up formatting of SwiftFileBackend::sanitizeHdrsStrict()Aaron Schulz2017-11-281-4/+4
| | | | | | | | | | | | Change-Id: I5e411f4bf50836d22db01220853776494a9e69d5
* | | objectcache: add more comments to WANObjectCacheAaron Schulz2017-11-281-14/+17
| | | | | | | | | | | | Change-Id: I567f45fa7b33226b0ccf7d80440802eab71ff753
* | | Merge "Use time forcing methods to avoid WANObjectCacheTest flakeiness"jenkins-bot2017-11-281-0/+3
|\ \ \ | |/ / |/| |
| * | Use time forcing methods to avoid WANObjectCacheTest flakeinessAaron Schulz2017-11-281-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use of microtime() is now just for baselines, and it is no longer assumed to be increasing with each call. Such an assumption is particuliarly bad on Windows. I've done 100X run rounds with now failures on Windows. Change-Id: Ica2a47982495bc95b10ca507414972744ea9507e
* | | Do not strip Content-Type header for POST requests to swiftCormac Parle2017-11-281-5/+28
|/ / | | | | | | | | | | | | | | | | | | | | | | libcurl adds 'Content-Type: application/x-www-form-urlencoded' to a POST request if the 'Content-Type' header is not set manually. Because data in swift is updated via POST, the Content-Type header must be set explicitly to stop a run of refreshFileHeaders.php from changing the Content-Type of all files in swift to application/x-www-form-urlencoded Bug: T178849 Change-Id: I43c21bc1b73e37104cf07cd5f1c1557f472b9898
* | Merge "objectcache: add "graceTTL" option to ↵jenkins-bot2017-11-281-13/+50
|\ \ | | | | | | | | | WANObjectCache::getWithSetCallback()"
| * | objectcache: add "graceTTL" option to WANObjectCache::getWithSetCallback()Aaron Schulz2017-11-271-13/+50
| | | | | | | | | | | | | | | | | | Also made worthRefreshExpiring() fully match the method documentation. Change-Id: I48a4b1b9d006de100389b47c03c1185a9316abfc
* | | Merge "Add WebAssembly application/wasm MIME type"jenkins-bot2017-11-282-0/+2
|\ \ \
| * | | Add WebAssembly application/wasm MIME typeBrion Vibber2017-11-202-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Needed to get TimedMediaHandler's .wasm binaries for latest version of ogv.js working via the static.php intermediary, which uses StreamFile::contentTypeFromPath() to check MIME types and refuses to serve out the file if it's unknown. Bug: T179108 Bug: T181022 Change-Id: Ic15c4d985a9cac9e685b12876804504e6eb46171
* | | | objectcache: make adaptiveTTL() use getCurrentTime() for completenessAaron Schulz2017-11-271-1/+1
| |/ / |/| | | | | | | | Change-Id: I5ba3c39ccaf412b0aaecd64d52ab15b2075bc76c
* | | Merge "objectcache: add "staleTTL" into WANObjectCache::getWithSetCallback()"jenkins-bot2017-11-262-2/+53
|\ \ \
| * | | objectcache: add "staleTTL" into WANObjectCache::getWithSetCallback()Aaron Schulz2017-11-262-2/+53
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This simply involves passing it through to the set() call Also added some related commons to adaptiveTTL() involving usage of this option. Change-Id: Id5833a5d4efb6cad2eb646832e5b0188e86e12fc
* | | | Merge "Reduce replication log spam from LoadBalancer"jenkins-bot2017-11-262-4/+30
|\ \ \ \
| * | | | Reduce replication log spam from LoadBalancerAaron Schulz2017-11-232-4/+30
| | |_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | Set the logging level there to INFO. Move the ERROR level logging to LoadMonitor, where it will trigger only on cache regenerations, rather than every DB connection attempt. Change-Id: I96fd513a01601544ea30a562746c49c88f84d96d
* | | | Merge "Make IDatabase return type documentation less confusing"jenkins-bot2017-11-261-6/+9
|\ \ \ \
| * | | | Make IDatabase return type documentation less confusingAaron Schulz2017-11-231-6/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Disregard the effects of DBO_IGNORE, which is for internal use only and is not part of publically observable behavior. Change-Id: I056b7148bc53af524ea8c85c159d77fbfbd24520
* | | | | objectcache: improve touchCheckKey()/resetCheckKey() commentsAaron Schulz2017-11-231-20/+19
|/ / / / | | | | | | | | | | | | Change-Id: I91de1dff605adcf86e957bbf9e503fc4e5eed741
* | | | Merge "objectcache: add some WAN cache preemptive refresh tests"jenkins-bot2017-11-231-9/+23
|\ \ \ \ | |/ / / |/| / / | |/ /
| * | objectcache: add some WAN cache preemptive refresh testsAaron Schulz2017-11-221-9/+23
| | | | | | | | | | | | | | | | | | Added some extra sanity checks to WANObjectCache Change-Id: Iac511b0cc1fc8d57ac98e9d7f2cacbcddc1c6db9
* | | Merge "Add "maxLag" parameter to LBFactory sub-classes and LoadBalancer"jenkins-bot2017-11-234-3/+25
|\ \ \ | |/ / |/| |