[FileBackend] File locking fixes.
authorAaron Schulz <aschulz@wikimedia.org>
Wed, 11 Apr 2012 04:56:42 +0000 (21:56 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Tue, 8 May 2012 08:51:57 +0000 (01:51 -0700)
commita9e028e5a8d907a376e494f542cb89e69a129637
tree10beb657bdc376443cc85085c80ea48fe712aba3
parentf8e03276562b537b1efabcdf956c573667dccb94
[FileBackend] File locking fixes.

* 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
includes/filerepo/backend/lockmanager/FSLockManager.php
tests/phpunit/includes/filerepo/FileBackendTest.php