aboutsummaryrefslogtreecommitdiff
path: root/weed/filesys/wfs.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2021-04-14 20:26:13 -0700
committerChris Lu <chris.lu@gmail.com>2021-04-14 20:26:13 -0700
commitc04b7e106f1e83101580d57fa4ea33e0a4416194 (patch)
treea14ae5074a09f948cc124f4c4f1fb478a374bb1e /weed/filesys/wfs.go
parentffee470cfcc2a76fe11a5903b6ccf23672ba8ba8 (diff)
downloadseaweedfs-c04b7e106f1e83101580d57fa4ea33e0a4416194.tar.xz
seaweedfs-c04b7e106f1e83101580d57fa4ea33e0a4416194.zip
mount: remove entry from Dir object
Diffstat (limited to 'weed/filesys/wfs.go')
-rw-r--r--weed/filesys/wfs.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/weed/filesys/wfs.go b/weed/filesys/wfs.go
index aaff1377b..c2937f914 100644
--- a/weed/filesys/wfs.go
+++ b/weed/filesys/wfs.go
@@ -131,8 +131,7 @@ func NewSeaweedFileSystem(option *Option) *WFS {
wfs.metaCache.Shutdown()
})
- entry, _ := filer_pb.GetEntry(wfs, util.FullPath(wfs.option.FilerMountRootPath))
- wfs.root = &Dir{name: wfs.option.FilerMountRootPath, wfs: wfs, entry: entry}
+ wfs.root = &Dir{name: wfs.option.FilerMountRootPath, wfs: wfs}
wfs.fsNodeCache = newFsCache(wfs.root)
if wfs.option.ConcurrentWriters > 0 {