dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5641d92
)
Fixed silly unlock bug in LocalFile
author
Aaron Schulz
<aschulz@wikimedia.org>
Fri, 4 Oct 2013 16:06:07 +0000
(09:06 -0700)
committer
Aaron Schulz
<aschulz@wikimedia.org>
Fri, 4 Oct 2013 16:06:35 +0000
(16:06 +0000)
* Removed the lock instead of just purging some cache data
bug: 54978
Change-Id: Ida007c28e07b0fe1803ab8ed027bc2ec4f55af19
includes/filerepo/file/LocalFile.php
patch
|
blob
|
history
diff --git
a/includes/filerepo/file/LocalFile.php
b/includes/filerepo/file/LocalFile.php
index
9653db9
..
627defd
100644
(file)
--- a/
includes/filerepo/file/LocalFile.php
+++ b/
includes/filerepo/file/LocalFile.php
@@
-1772,7
+1772,7
@@
class LocalFile extends File {
throw new MWException( "Could not acquire lock for '{$this->getName()}.'" );
}
$dbw->onTransactionIdle( function() use ( $cache, $key ) {
- $cache->
delete
( $key ); // release on commit
+ $cache->
unlock
( $key ); // release on commit
} );
}