Merge pull request #970 from gaul/nocopyapi

Remove from file from stat cache during rename
This commit is contained in:
Takeshi Nakatani 2019-03-10 12:56:04 +09:00 committed by GitHub
commit b5ca400500
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1563,6 +1563,7 @@ static int s3fs_rename(const char* _from, const char* _to)
FdEntity *entity = FdManager::get()->ExistOpen(from);
if(entity != NULL){
entity->Flush(true);
StatCache::getStatCacheData()->DelStat(from);
}
// files larger than 5GB must be modified via the multipart interface