mirror of
https://github.com/nextcloud/server.git
synced 2026-06-11 01:30:50 -04:00
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>
This commit is contained in:
parent
bdb9f31cf1
commit
9d2d3c4809
1 changed files with 1 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue