Merge pull request #321 from mcellis33/320

320: delete stat cache entry in s3fs_fsync so st_size is refreshed
This commit is contained in:
Takeshi Nakatani 2015-12-20 15:05:28 +09:00
commit ea151a70c4

View File

@ -2170,6 +2170,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;
}