dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dd2f53d
)
[FileBackend] Issue a warnings for cache problems in streamFile().
author
Aaron Schulz
<aschulz@wikimedia.org>
Fri, 19 Oct 2012 19:28:08 +0000
(12:28 -0700)
committer
Aaron Schulz
<aschulz@wikimedia.org>
Fri, 19 Oct 2012 19:28:14 +0000
(12:28 -0700)
Change-Id: I62cf6f07dc8722d483b3b6969aae1915c4ffccc6
includes/filebackend/FileBackendStore.php
patch
|
blob
|
history
diff --git
a/includes/filebackend/FileBackendStore.php
b/includes/filebackend/FileBackendStore.php
index
39cfc2d
..
5f562d2
100644
(file)
--- 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'] );