mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2024-11-12 23:46:30 +00:00
parent
75e72385cc
commit
66597ec5f2
@ -2788,7 +2788,7 @@ void FdManager::Rename(const std::string &from, const std::string &to)
|
||||
// rename path and caches in fd entity
|
||||
string fentmapkey;
|
||||
if(!ent->RenamePath(to, fentmapkey)){
|
||||
S3FS_PRN_ERR("Failed to rename FdEntity obejct for %s to %s", from.c_str(), to.c_str());
|
||||
S3FS_PRN_ERR("Failed to rename FdEntity object for %s to %s", from.c_str(), to.c_str());
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -1373,6 +1373,8 @@ static int rename_object_nocopy(const char* from, const char* to)
|
||||
FdManager::get()->Close(ent);
|
||||
return result;
|
||||
}
|
||||
|
||||
FdManager::get()->Rename(from, to);
|
||||
FdManager::get()->Close(ent);
|
||||
|
||||
// Remove file
|
||||
|
Loading…
Reference in New Issue
Block a user