aboutsummaryrefslogtreecommitdiffstats
path: root/includes/filerepo/backend/lockmanager
Commit message (Collapse)AuthorAgeFilesLines
* [FileBackend] Moved filerepo/backend/ up to filebackendAaron Schulz2012-08-086-1734/+0
| | | | Change-Id: I62ba23bd22e0f177fb48acaf6bcc38cbffacd3e7
* Merge "[LockManager] Cleaned up DBLockManager and reduced code duplication."Demon2012-08-081-219/+85
|\
| * [LockManager] Cleaned up DBLockManager and reduced code duplication.Aaron2012-06-211-219/+85
| | | | | | | | Change-Id: If2b56935b8e89c4a2f3b9d0c790bbd6d6d88c520
* | Remove unused variables/function values returnedReedy2012-08-081-1/+1
| | | | | | | | | | | | Fix trailing whitespace Change-Id: I53abf75e142f0166032b98e4adb3dabe06643017
* | [LockManager] Made LSLockManager session 32 chars (128 bits).Aaron Schulz2012-07-181-9/+9
| | | | | | | | Change-Id: I1eba3eb44ebef02c771b518c2bcbdc0d41eb8086
* | Merge "[LockManager] Memc lockmanager improvements."Aaron2012-07-171-1/+14
|\ \
| * | [LockManager] Memc lockmanager improvements.Aaron2012-07-171-1/+14
| | | | | | | | | | | | | | | | | | | | | | | | * Throttled key lock polling and changed the key locking to happen in sorted key order. This should reduce deadlocks and wasted RTTs for frequently used items. * Also tweaked the wfRandomString() argument to be 32 (128 bit). Change-Id: I12bbc988251ad3c895aa40a08b0215b2bcdb5e4f
* | | escape tags and entity in doxygen commentsAntoine Musso2012-07-101-4/+4
|/ / | | | | | | | | | | | | | | | | | | | | When inserting XML elements inline <such as this one>, doxygen chokes about it not being known. Simply enclosing the tag in double quotes prevents doxygen from emitting a warning. Also enclosed a few invalid functions calls such as \. and double quoted the HTML entities such as &foobar; Change-Id: I4019637145e683c2bec3d17b2fd98b0c50a932f1
* / [LockManager] Added support for a default lock manager.Aaron Schulz2012-06-231-3/+28
|/ | | | Change-Id: I730c8b078b9f3a0ad73b1b0887a8c991c9d81bde
* [LockManager] Added a memcached lock manager class.Aaron2012-06-212-5/+314
| | | | Change-Id: Ie99a7f1335bb5cceb0cb1c33a40094b3a22101ea
* [LockManager] Factored QuorumLockManager class out of LSLockManager.Aaron2012-06-192-162/+257
| | | | Change-Id: I4031085faef4a1a7ce49dbeeb0b3ddf94d41132c
* Fixed infinite loop in tests with FSLockManager.Aaron Schulz2012-06-051-2/+4
| | | | | | | | * If PHPUnit converts warnings to exceptions, any I/O warnings can throw exceptions which leave locksHeld in an inconsistent state, breaking the __destruct() function. This commits reorders the variable update slightly. Change-Id: I5deac811e7b4d0bc71f3d4096b8d72711904a444
* Big oops - merged to wrong branch.awjrichards2012-06-051-4/+8
| | | | | Revert "Revert to arbitrarily old point before initial remote branch creation to help clean up" This reverts commit ee0d3d330f76b97c451c168dc9b052ee84609b5b
* Revert to arbitrarily old point before initial remote branch creation to ↵awjrichards2012-06-021-8/+4
| | | | | | help clean up Change-Id: I41a3d1e55d3ea9dffa42451237fe065f9334361d
* Fixed destructor in FSLockManager to clear all the locks.Aaron Schulz2012-06-021-4/+8
| | | | Change-Id: I019d24c19f317eb649b5a0415618b453e1ea171b
* Improved/added parameter documentationReedy2012-05-185-0/+36
| | | | Change-Id: Ie48852acb434f6b62fda0b13b13e076f833d8975
* [FileBackend] File locking fixes.Aaron Schulz2012-05-081-11/+15
| | | | | | | | | | * Fixed unlocking logic in FSLockManager for case when an EX lock was made, then an SH one, and then the EX one was "unlocked" * Avoid hiding useful unlink() warnings in FSLockManager * Reduced locking use in test cleanup code * Added a simple testLockCalls() test function * Made a few cleanups & fixes to backend tests Change-Id: I1110d9b537c450d9feca5a2fb35519c22435e81d
* Added missing GPLv2 headers in some places.Alexandre Emsenhuber2012-05-075-0/+102
| | | | | | Also made file/class documentation more consistent. Change-Id: Iad15427368d13a6cc11c8512b7265e8c7b8878a5
* __clone() is a public method, shouldn't be made protectedReedy2012-04-282-4/+0
| | | | Change-Id: Ib4a716867b12be2cef90f87bc77c22ea2d890261
* Fixed attempt to write to the wiki's upload directory during parser tests ↵Tim Starling2012-03-201-0/+8
| | | | | | | instead of /tmp, this is not allowed. I'm not sure what setupGlobals() is meant to do nowadays, that part is untested. It seems to be duplicated in ParserTest::__construct(). Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/114224
* Added some super calls to constructors to be safeAaron Schulz2012-03-043-0/+5
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/112984
* [FileBackend]Aaron Schulz2012-03-033-1/+25
| | | | | | | | * Various documentation improvements. * Moved a few protected FileBackendStoreShardListIterator functions down. Same with normalizeContainerPath(). Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/112958
* Added some lock call profilingAaron Schulz2012-03-021-2/+8
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/112866
* Pass __METHOD__ to DatabaseBase::begin(), DatabaseBase::commit() and ↵Alexandre Emsenhuber2012-02-261-3/+3
| | | | | | | DatabaseBase::rollback() Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/112443
* More return documentationSam Reed2012-02-091-0/+2
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/111101
* Fixing some of the "@return true" or "@return false", need to be "@return ↵Sam Reed2012-02-091-1/+1
| | | | | | | | | bool" and then the metadata can say true if foo, false if bar Other documentation improvements Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/111053
* Fixing some of the "@return true" or "@return false", need to be "@return ↵Sam Reed2012-02-091-1/+1
| | | | | | | | | bool" and then the metadata can say true if foo, false if bar Other documentation improvements Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/111049
* enhance filerepo doc structureAntoine Musso2012-02-082-2/+12
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/110938
* Removed some useless code and a confusing comment in ↵Aaron Schulz2012-02-051-7/+2
| | | | | | | FSLockManager::doLock(). This was from before referencing counting was used. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/110714
* Add documentationSam Reed2012-01-272-4/+8
| | | | | | | Fix whitespace Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/110125
* reverts r109814 r109815Antoine Musso2012-01-231-6/+3
| | | | | | | | | | | | * Ternary operator avoided a call to wfWikiID() * We really want to explicitly choose the manager use LockManagerGroup->get( 'nullLockManager' ) * defaultConfig no more needed if it handles just one parameter that we want to set explicitly Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/109855
* get a null lock manager by defaultAntoine Musso2012-01-231-3/+6
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/109814
* * Fixed bogus var in LSLockManager.Aaron Schulz2012-01-142-2/+4
| | | | | | | | * Made DBLockManager constructor a bit more convenient to use with just 'localDBMaster' in the db buckets. * Documentation tweaks. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/108891
* In FileBackend:Aaron Schulz2012-01-135-0/+5
| | | | | | | | | | | | | * Made secure() call doPrepare() for caller dummy proofing (especially those that don't check the status). In FSFileBackend: * Removed redundant wfMkdirParents() calls in FSFileBackend, we already have prepare() for this purpose. This also keeps it's behavior more consistent with the other backends. * Made use of 'backend-fail-store' message in doStoreInternal(). Other: * Updated unit tests and renamed $src => $source in some functions for consistency. * Added some documentation comments and @since tags. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/108878
* Reverted r108743 per CR comment. This should at least be discussed first.Aaron Schulz2012-01-122-0/+4
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/108745
* Kill "* @return void"Sam Reed2012-01-122-4/+0
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/108743
* * Fixed bogus dollar signs left in $tmpGlobals array keys in r108300.Aaron Schulz2012-01-073-1/+12
| | | | | | | * Various documentation cleanups. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/108304
* Cleanup a few unused variablesSam Reed2012-01-011-2/+2
| | | | | | | Mainly indexes in foreach loops Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/107791
* Add bracesSam Reed2011-12-311-1/+1
| | | | | | | Fix documentation Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/107680
* * Follow-up r107195: these params are resource paths now, rather than hashes ↵Aaron Schulz2011-12-242-3/+9
| | | | | | | | | of the resource paths. * Removed lockmanager-fail-acquirelocks message; a series of lockmanager-fail-acquirelock messages are now used instead. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/107197
* In LockManager classes:Aaron Schulz2011-12-244-162/+172
| | | | | | | | | * Only use hash keys later on in the data flow rather than right when doLock() is called. This allows for error messages in Status objects to use human readable paths rather than ugly hash keys. * Moved $locksHeld declaration duplication up to the base class. * Fixed __destruct() in FSLockManager to not use bogus doSingleUnlock() lock type parameter. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/107193
* * FU r106752: de-uglified Setup.php by moving most of the b/c code into ↵Aaron Schulz2011-12-221-1/+17
| | | | | | | | | | | | FileBackendGroup. Deferred registration of file backends and lock managers to the respective singleton() functions for the group objects. * Refactored FileRepo::initZones() to require the specific zones; nothing was using it differently. * Removed deleted zone check in deleteBatch(), a similar error will instead trigger with the initZones() call as needed. * Added $wgLocalFileRepo comment. * Updated tests. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/107028
* Don't suppress warnings when attempting file creation for the second time, ↵Tim Starling2011-12-201-2/+0
| | | | | | | this masks important error messages Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/106757
* Merged FileBackend branch. Manually avoiding merging the many prop-only ↵Aaron Schulz2011-12-205-0/+1180
changes SVN likes to sprinkle in (easy to spot from the change list). Did not add SwiftFileBackend.php as it still is in development. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/106752