mount: remove entry from Dir object

This commit is contained in:
Chris Lu
2021-04-14 20:26:13 -07:00
parent ffee470cfc
commit c04b7e106f
2 changed files with 41 additions and 43 deletions

View File

@@ -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 {