diff options
| author | Chris Lu <chris.lu@gmail.com> | 2021-04-14 20:26:13 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2021-04-14 20:26:13 -0700 |
| commit | c04b7e106f1e83101580d57fa4ea33e0a4416194 (patch) | |
| tree | a14ae5074a09f948cc124f4c4f1fb478a374bb1e /weed/filesys/wfs.go | |
| parent | ffee470cfcc2a76fe11a5903b6ccf23672ba8ba8 (diff) | |
| download | seaweedfs-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.go | 3 |
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 { |
