Bladeren bron

Clear the statscache before fetching the metadata

Else if a lot of writes happen. It might happen that an old stat result
is used. Resulting in a wrong file size for the file. For example the
text app when a lot of people edit at the same time.

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
tags/v20.0.0beta1
Roeland Jago Douma 4 jaren geleden
bovenliggende
commit
6b26744787
No account linked to committer's email address
1 gewijzigde bestanden met toevoegingen van 1 en 0 verwijderingen
  1. 1
    0
      lib/private/Files/Storage/Local.php

+ 1
- 0
lib/private/Files/Storage/Local.php Bestand weergeven

@@ -156,6 +156,7 @@ class Local extends \OC\Files\Storage\Common {
*/
public function getMetaData($path) {
$fullPath = $this->getSourcePath($path);
clearstatcache();
$stat = @stat($fullPath);
if (!$stat) {
return null;

Laden…
Annuleren
Opslaan