aboutsummaryrefslogtreecommitdiff
path: root/weed/mount/weedfs.go
diff options
context:
space:
mode:
authorchrislu <chris.lu@gmail.com>2023-09-21 11:08:26 -0700
committerchrislu <chris.lu@gmail.com>2023-09-21 11:08:26 -0700
commit31fc1657151eb7bb0f45c0657deabe664526a0eb (patch)
tree60d5ad8a1ad50506d2550163c02b9151117099db /weed/mount/weedfs.go
parent76698522419902303117d3f736a619b8c01c60f4 (diff)
downloadseaweedfs-31fc1657151eb7bb0f45c0657deabe664526a0eb.tar.xz
seaweedfs-31fc1657151eb7bb0f45c0657deabe664526a0eb.zip
mount switch to ordered lock requests
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 4ac01b3e6..de7502688 100644
--- a/weed/mount/weedfs.go
+++ b/weed/mount/weedfs.go
@@ -78,6 +78,7 @@ type WFS struct {
dhmap *DirectoryHandleToInode
fuseServer *fuse.Server
IsOverQuota bool
+ fhLockTable *util.LockTable[FileHandleId]
}
func NewSeaweedFileSystem(option *Option) *WFS {
@@ -88,6 +89,7 @@ func NewSeaweedFileSystem(option *Option) *WFS {
inodeToPath: NewInodeToPath(util.FullPath(option.FilerMountRootPath)),
fhmap: NewFileHandleToInode(),
dhmap: NewDirectoryHandleToInode(),
+ fhLockTable: util.NewLockTable[FileHandleId](),
}
wfs.option.filerIndex = int32(rand.Intn(len(option.FilerAddresses)))