From 53b361e52cce69eab706bfec5f579063991fb3b9 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Fri, 4 Oct 2013 09:06:07 -0700 Subject: [PATCH] Fixed silly unlock bug in LocalFile * Removed the lock instead of just purging some cache data bug: 54978 Change-Id: Ida007c28e07b0fe1803ab8ed027bc2ec4f55af19 --- includes/filerepo/file/LocalFile.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 } ); } -- 2.20.1