mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2024-12-23 09:18:55 +00:00
320: delete stat cache entry in s3fs_fsync so st_size is refreshed
This commit is contained in:
parent
8162d4925d
commit
163daa5de1
@ -2169,6 +2169,9 @@ static int s3fs_fsync(const char* path, int datasync, struct fuse_file_info* fi)
|
||||
}
|
||||
S3FS_MALLOCTRIM(0);
|
||||
|
||||
// Issue 320: Delete stat cache entry because st_size may have changed.
|
||||
StatCache::getStatCacheData()->DelStat(path);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user