mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2024-11-18 02:05:13 +00:00
Changed to rename cache files when renaming large files (#2135)
This commit is contained in:
parent
18495c44aa
commit
9648eba5bb
@ -1518,11 +1518,14 @@ static int rename_large_object(const char* from, const char* to)
|
||||
}
|
||||
s3fscurl.DestroyCurlHandle();
|
||||
|
||||
// Rename cache file
|
||||
FdManager::get()->Rename(from, to);
|
||||
|
||||
// Remove file
|
||||
result = s3fs_unlink(from);
|
||||
|
||||
// Stats
|
||||
StatCache::getStatCacheData()->DelStat(to);
|
||||
FdManager::DeleteCacheFile(to);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user