Merge "[FileBackend] Clear the stat cache in doQuickOperations() for sanity."
authorTim Starling <tstarling@wikimedia.org>
Tue, 20 Nov 2012 22:49:16 +0000 (22:49 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Tue, 20 Nov 2012 22:49:16 +0000 (22:49 +0000)
1  2 
includes/filebackend/FileBackendStore.php

@@@ -1120,9 -1115,9 +1120,12 @@@ abstract class FileBackendStore extend
                wfProfileIn( __METHOD__ . '-' . $this->name );
                $status = Status::newGood();
  
 +              // Fix up custom header name/value pairs...
 +              $ops = array_map( array( $this, 'stripInvalidHeadersFromOp' ), $ops );
 +
+               // Clear any file cache entries
+               $this->clearCache();
                $supportedOps = array( 'create', 'store', 'copy', 'move', 'delete', 'null' );
                $async = ( $this->parallelize === 'implicit' );
                $maxConcurrency = $this->concurrency; // throttle