mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2024-06-06 19:10:49 +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();
|
s3fscurl.DestroyCurlHandle();
|
||||||
|
|
||||||
|
// Rename cache file
|
||||||
|
FdManager::get()->Rename(from, to);
|
||||||
|
|
||||||
// Remove file
|
// Remove file
|
||||||
result = s3fs_unlink(from);
|
result = s3fs_unlink(from);
|
||||||
|
|
||||||
|
// Stats
|
||||||
StatCache::getStatCacheData()->DelStat(to);
|
StatCache::getStatCacheData()->DelStat(to);
|
||||||
FdManager::DeleteCacheFile(to);
|
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user