fix handle delete tmpfs file failed
This commit is contained in:
@@ -71,8 +71,6 @@ func (tmpfs *Tmpfs) Cleaner() {
|
|||||||
err = os.Remove(path)
|
err = os.Remove(path)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Println("[tmpfs] Failed to remove file", err)
|
log.Println("[tmpfs] Failed to remove file", err)
|
||||||
lock.Unlock()
|
|
||||||
continue
|
|
||||||
}
|
}
|
||||||
log.Println("[tmpfs] Deleted file", path)
|
log.Println("[tmpfs] Deleted file", path)
|
||||||
delete(tmpfs.record, path)
|
delete(tmpfs.record, path)
|
||||||
|
|||||||
Reference in New Issue
Block a user