Use preloadFileStat() to speed up syncFileBackend
Change-Id: Idd8e67090d7d5e7b6952fb46012981309475b902
This commit is contained in:
parent
3b3806d27a
commit
e8b35f4790
1 changed files with 3 additions and 0 deletions
|
|
@ -221,6 +221,9 @@ class SyncFileBackend extends Maintenance {
|
|||
return $status;
|
||||
}
|
||||
|
||||
$src->preloadFileStat( array( 'srcs' => $sPaths, 'latest' => 1 ) );
|
||||
$dst->preloadFileStat( array( 'srcs' => $dPaths, 'latest' => 1 ) );
|
||||
|
||||
$ops = array();
|
||||
$fsFiles = array();
|
||||
foreach ( $sPaths as $i => $sPath ) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue