mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2025-01-03 13:07:24 +00:00
Remove from file from stat cache during rename
This addresses failures with test_rename_before_close when using nocopyapi. Note that test_update_time still fails.
This commit is contained in:
parent
0d43d070cc
commit
08b132ddb9
@ -1563,6 +1563,7 @@ static int s3fs_rename(const char* _from, const char* _to)
|
|||||||
FdEntity *entity = FdManager::get()->ExistOpen(from);
|
FdEntity *entity = FdManager::get()->ExistOpen(from);
|
||||||
if(entity != NULL){
|
if(entity != NULL){
|
||||||
entity->Flush(true);
|
entity->Flush(true);
|
||||||
|
StatCache::getStatCacheData()->DelStat(from);
|
||||||
}
|
}
|
||||||
|
|
||||||
// files larger than 5GB must be modified via the multipart interface
|
// files larger than 5GB must be modified via the multipart interface
|
||||||
|
Loading…
Reference in New Issue
Block a user