fix handle delete tmpfs file failed

This commit is contained in:
2022-06-12 16:36:08 +08:00
parent d07df60b5d
commit 8859640411

View File

@@ -71,8 +71,6 @@ func (tmpfs *Tmpfs) Cleaner() {
err = os.Remove(path)
if err != nil {
log.Println("[tmpfs] Failed to remove file", err)
lock.Unlock()
continue
}
log.Println("[tmpfs] Deleted file", path)
delete(tmpfs.record, path)