320: delete stat cache entry in s3fs_fsync so st_size is refreshed

This commit is contained in:
Mark Ellis 2015-12-18 15:39:25 -08:00
parent 8162d4925d
commit 163daa5de1

View File

@ -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;
}