dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Revert "Use display name in category page subheadings if provided"
[lhc/web/wiklou.git]
/
includes
/
filebackend
/
FileBackendMultiWrite.php
diff --git
a/includes/filebackend/FileBackendMultiWrite.php
b/includes/filebackend/FileBackendMultiWrite.php
index
0d7bf66
..
3b20048
100644
(file)
--- a/
includes/filebackend/FileBackendMultiWrite.php
+++ b/
includes/filebackend/FileBackendMultiWrite.php
@@
-241,6
+241,12
@@
class FileBackendMultiWrite extends FileBackend {
return $status; // skip checks
}
return $status; // skip checks
}
+ // Preload all of the stat info in as few round trips as possible...
+ foreach ( $this->backends as $backend ) {
+ $realPaths = $this->substPaths( $paths, $backend );
+ $backend->preloadFileStat( [ 'srcs' => $realPaths, 'latest' => true ] );
+ }
+
$mBackend = $this->backends[$this->masterIndex];
foreach ( $paths as $path ) {
$params = [ 'src' => $path, 'latest' => true ];
$mBackend = $this->backends[$this->masterIndex];
foreach ( $paths as $path ) {
$params = [ 'src' => $path, 'latest' => true ];
@@
-379,6
+385,11
@@
class FileBackendMultiWrite extends FileBackend {
}
}
}
}
+ if ( !$status->isOK() ) {
+ wfDebugLog( 'FileOperation', get_class( $this ) .
+ " failed to resync: " . FormatJson::encode( $paths ) );
+ }
+
return $status;
}
return $status;
}