aboutsummaryrefslogtreecommitdiff
path: root/weed/mount/weedfs.go
diff options
context:
space:
mode:
authorchrislu <chris.lu@gmail.com>2022-02-15 01:44:17 -0800
committerchrislu <chris.lu@gmail.com>2022-02-15 01:44:17 -0800
commit17ac5244c31d06f7065bd8ed9a416d00e048b23c (patch)
tree99941eb20c207bacca567491e0dfb678d5347c04 /weed/mount/weedfs.go
parent222798d9266385dc89f47c215803bc316edda6cd (diff)
downloadseaweedfs-17ac5244c31d06f7065bd8ed9a416d00e048b23c.tar.xz
seaweedfs-17ac5244c31d06f7065bd8ed9a416d00e048b23c.zip
mount2: avoid double listing directories
Diffstat (limited to 'weed/mount/weedfs.go')
-rw-r--r--weed/mount/weedfs.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/weed/mount/weedfs.go b/weed/mount/weedfs.go
index 072f562fc..25ef830ae 100644
--- a/weed/mount/weedfs.go
+++ b/weed/mount/weedfs.go
@@ -67,6 +67,7 @@ type WFS struct {
concurrentWriters *util.LimitedConcurrentExecutor
inodeToPath *InodeToPath
fhmap *FileHandleToInode
+ dhmap *DirectoryHandleToInode
}
func NewSeaweedFileSystem(option *Option) *WFS {
@@ -76,6 +77,7 @@ func NewSeaweedFileSystem(option *Option) *WFS {
signature: util.RandomInt32(),
inodeToPath: NewInodeToPath(),
fhmap: NewFileHandleToInode(),
+ dhmap: NewDirectoryHandleToInode(),
}
wfs.root = Directory{