Optimize consistencyCheck() in FileBackendMultiwrite
doOperationsInternal() already set "preserveCache" but never actually filled it in to begin with. This should lower round trips if sync checks are enabled. Change-Id: Ica67b8d66e7602faed842408365edbd466688f61
This commit is contained in:
parent
72d334bdf6
commit
48fc04e656
1 changed files with 6 additions and 0 deletions
|
|
@ -241,6 +241,12 @@ class FileBackendMultiWrite extends FileBackend {
|
|||
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 ];
|
||||
|
|
|
|||
Loading…
Reference in a new issue