Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
fix issue with file unlinking
authorAugustin Degomme <adegomme@gmail.com>
Tue, 10 Dec 2019 15:12:24 +0000 (16:12 +0100)
committerAugustin Degomme <adegomme@gmail.com>
Tue, 10 Dec 2019 16:16:57 +0000 (17:16 +0100)
src/plugins/file_system/s4u_FileSystem.cpp

index 3892c2d..6b63130 100644 (file)
@@ -336,7 +336,7 @@ int File::unlink()
       local_disk_->extension<FileSystemDiskExt>()->decr_used_size(size_);
 
     // Remove the file from storage
       local_disk_->extension<FileSystemDiskExt>()->decr_used_size(size_);
 
     // Remove the file from storage
-    content->erase(fullpath_);
+    content->erase(path_);
 
     return 0;
   }
 
     return 0;
   }