From 08b132ddb901bbe5c33cc368549336f095d26425 Mon Sep 17 00:00:00 2001 From: Andrew Gaul Date: Sat, 9 Mar 2019 17:51:22 +0900 Subject: [PATCH] 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. --- src/s3fs.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/s3fs.cpp b/src/s3fs.cpp index 6438b56..634f457 100644 --- a/src/s3fs.cpp +++ b/src/s3fs.cpp @@ -1563,6 +1563,7 @@ static int s3fs_rename(const char* _from, const char* _to) FdEntity *entity = FdManager::get()->ExistOpen(from); if(entity != NULL){ entity->Flush(true); + StatCache::getStatCacheData()->DelStat(from); } // files larger than 5GB must be modified via the multipart interface