From: Aaron Schulz Date: Fri, 19 Oct 2012 19:28:08 +0000 (-0700) Subject: [FileBackend] Issue a warnings for cache problems in streamFile(). X-Git-Tag: 1.31.0-rc.0~21943 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/membres/message.php?a=commitdiff_plain;h=49ed2a3bc369c92d5fc18401af3e47e3a29c4cf7;p=lhc%2Fweb%2Fwiklou.git [FileBackend] Issue a warnings for cache problems in streamFile(). Change-Id: I62cf6f07dc8722d483b3b6969aae1915c4ffccc6 --- 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'] );