diff options
author | Aaron Schulz <aschulz@wikimedia.org> | 2016-09-17 21:42:56 -0700 |
---|---|---|
committer | Gergő Tisza <gtisza@wikimedia.org> | 2016-09-19 04:34:28 +0000 |
commit | 25a1651aadad734c5124a52225c972b00e92de96 (patch) | |
tree | ca689fd209f607568864900222b230a5645e821e /includes/filebackend/FileBackend.php | |
parent | c0f63617d3180452b55a15fe891159c689e98a00 (diff) | |
download | mediawikicore-25a1651aadad734c5124a52225c972b00e92de96.tar.gz mediawikicore-25a1651aadad734c5124a52225c972b00e92de96.zip |
Make LockManager use StatusValue and move classes to /libs
Change-Id: Ifa41fc2939f3515d4a056746b0fcbff79786d25b
Diffstat (limited to 'includes/filebackend/FileBackend.php')
-rw-r--r-- | includes/filebackend/FileBackend.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/filebackend/FileBackend.php b/includes/filebackend/FileBackend.php index 1f91b3f13aab..ed2bdcc140ba 100644 --- a/includes/filebackend/FileBackend.php +++ b/includes/filebackend/FileBackend.php @@ -1260,7 +1260,7 @@ abstract class FileBackend { final public function lockFiles( array $paths, $type, $timeout = 0 ) { $paths = array_map( 'FileBackend::normalizeStoragePath', $paths ); - return $this->lockManager->lock( $paths, $type, $timeout ); + return $this->wrapStatus( $this->lockManager->lock( $paths, $type, $timeout ) ); } /** @@ -1273,7 +1273,7 @@ abstract class FileBackend { final public function unlockFiles( array $paths, $type ) { $paths = array_map( 'FileBackend::normalizeStoragePath', $paths ); - return $this->lockManager->unlock( $paths, $type ); + return $this->wrapStatus( $this->lockManager->unlock( $paths, $type ) ); } /** |