From 163daa5de11206a76e1895be3f030158375e154d Mon Sep 17 00:00:00 2001 From: Mark Ellis Date: Fri, 18 Dec 2015 15:39:25 -0800 Subject: [PATCH] 320: delete stat cache entry in s3fs_fsync so st_size is refreshed --- src/s3fs.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/s3fs.cpp b/src/s3fs.cpp index 86490eb..c3e043d 100644 --- a/src/s3fs.cpp +++ b/src/s3fs.cpp @@ -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; }