From 49ed2a3bc369c92d5fc18401af3e47e3a29c4cf7 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Fri, 19 Oct 2012 12:28:08 -0700 Subject: [PATCH] [FileBackend] Issue a warnings for cache problems in streamFile(). Change-Id: I62cf6f07dc8722d483b3b6969aae1915c4ffccc6 --- includes/filebackend/FileBackendStore.php | 1 + 1 file changed, 1 insertion(+) diff --git a/includes/filebackend/FileBackendStore.php b/includes/filebackend/FileBackendStore.php index 39cfc2d24f..5f562d2d8c 100644 --- a/includes/filebackend/FileBackendStore.php +++ b/includes/filebackend/FileBackendStore.php @@ -840,6 +840,7 @@ abstract class FileBackendStore extends FileBackend { // with simple race conditions. Clear out the stat cache to be safe. $this->clearCache( array( $params['src'] ) ); $this->deleteFileCache( $params['src'] ); + trigger_error( "Bad stat cache or race condition for file {$params['src']}." ); } } else { $status->fatal( 'backend-fail-stream', $params['src'] ); -- 2.20.1