Skip to content

Commit 9d2d3c4

Browse files
rullzerbackportbot[bot]
authored andcommitted
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>
1 parent bdb9f31 commit 9d2d3c4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/private/Files/Storage/Local.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,7 @@ public function stat($path) {
156156
*/
157157
public function getMetaData($path) {
158158
$fullPath = $this->getSourcePath($path);
159+
clearstatcache();
159160
$stat = @stat($fullPath);
160161
if (!$stat) {
161162
return null;

0 commit comments

Comments
 (0)