Fixed silly unlock bug in LocalFile
authorAaron Schulz <aschulz@wikimedia.org>
Fri, 4 Oct 2013 16:06:07 +0000 (09:06 -0700)
committerAaron 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

index 9653db9..627defd 100644 (file)
@@ -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
                        } );
                }