From: Aaron Schulz Date: Fri, 4 Oct 2013 16:06:07 +0000 (-0700) Subject: Fixed silly unlock bug in LocalFile X-Git-Tag: 1.31.0-rc.0~18608^2 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22articles%22%2C%22id_article=%24ze_article%22%29%20.%20%22?a=commitdiff_plain;h=53b361e52cce69eab706bfec5f579063991fb3b9;p=lhc%2Fweb%2Fwiklou.git Fixed silly unlock bug in LocalFile * Removed the lock instead of just purging some cache data bug: 54978 Change-Id: Ida007c28e07b0fe1803ab8ed027bc2ec4f55af19 --- diff --git a/includes/filerepo/file/LocalFile.php b/includes/filerepo/file/LocalFile.php index 9653db94cc..627defd3fc 100644 --- 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 } ); }