[FileBackend] Issue a warnings for cache problems in streamFile().
authorAaron Schulz <aschulz@wikimedia.org>
Fri, 19 Oct 2012 19:28:08 +0000 (12:28 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Fri, 19 Oct 2012 19:28:14 +0000 (12:28 -0700)
Change-Id: I62cf6f07dc8722d483b3b6969aae1915c4ffccc6

includes/filebackend/FileBackendStore.php

index 39cfc2d..5f562d2 100644 (file)
@@ -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'] );