aboutsummaryrefslogtreecommitdiff
path: root/weed/filesys/wfs.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2020-03-26 00:08:14 -0700
committerChris Lu <chris.lu@gmail.com>2020-03-26 00:08:14 -0700
commit7f0d87b2065ffb5e7be1bd0591416b9649839c9e (patch)
tree11a60d3bc6fed6cbc97987e09f8e428ddc0a3c97 /weed/filesys/wfs.go
parent2e4fadd10aa8835e7bcbbe25b46169a6335154f6 (diff)
downloadseaweedfs-7f0d87b2065ffb5e7be1bd0591416b9649839c9e.tar.xz
seaweedfs-7f0d87b2065ffb5e7be1bd0591416b9649839c9e.zip
tree structured fs cache
FsCache for FsNode, wrapping fs.Node
Diffstat (limited to 'weed/filesys/wfs.go')
-rw-r--r--weed/filesys/wfs.go6
1 files changed, 1 insertions, 5 deletions
diff --git a/weed/filesys/wfs.go b/weed/filesys/wfs.go
index 5d3dd984a..5075687e3 100644
--- a/weed/filesys/wfs.go
+++ b/weed/filesys/wfs.go
@@ -60,9 +60,6 @@ type WFS struct {
stats statsCache
- // nodes, protected by nodesLock
- nodesLock sync.Mutex
- nodes map[uint64]fs.Node
root fs.Node
fsNodeCache *FsCache
}
@@ -81,10 +78,9 @@ func NewSeaweedFileSystem(option *Option) *WFS {
return make([]byte, option.ChunkSizeLimit)
},
},
- nodes: make(map[uint64]fs.Node),
}
- wfs.root = &Dir{Path: wfs.option.FilerMountRootPath, wfs: wfs}
+ wfs.root = &Dir{name: wfs.option.FilerMountRootPath, wfs: wfs}
wfs.fsNodeCache = newFsCache(wfs.root)
return wfs