diff --git a/src/fdcache.cpp b/src/fdcache.cpp index 4b1da3a..b76b66a 100644 --- a/src/fdcache.cpp +++ b/src/fdcache.cpp @@ -2805,7 +2805,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; } diff --git a/src/s3fs.cpp b/src/s3fs.cpp index e9d4d54..af3b3b0 100644 --- a/src/s3fs.cpp +++ b/src/s3fs.cpp @@ -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