mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-10-22 06:07:24 +08:00
properly clear out the file.entry
This commit is contained in:
@@ -96,7 +96,7 @@ func NewSeaweedFileSystem(option *Option) *WFS {
|
|||||||
fsNode := wfs.fsNodeCache.GetFsNode(filePath)
|
fsNode := wfs.fsNodeCache.GetFsNode(filePath)
|
||||||
if fsNode != nil {
|
if fsNode != nil {
|
||||||
if file, ok := fsNode.(*File); ok {
|
if file, ok := fsNode.(*File); ok {
|
||||||
file.entry = nil
|
file.setEntry(nil)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
Reference in New Issue
Block a user