diff options
| author | zemul <zemul@foxmail.com> | 2024-12-17 12:19:32 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-12-16 20:19:32 -0800 |
| commit | e77e50886e937cd63175878ece20e0e0dbfc81ff (patch) | |
| tree | 9e592bce4f483f61baa443cae4351549f208dfe2 /weed/mount/weedfs.go | |
| parent | b2f26804a06eb7a663d411cd82396ce4195dfa61 (diff) | |
| download | seaweedfs-e77e50886e937cd63175878ece20e0e0dbfc81ff.tar.xz seaweedfs-e77e50886e937cd63175878ece20e0e0dbfc81ff.zip | |
mount metacache add ttl (#6360)
* fix:mount deadlock
* fix
* feat: metaCache ttl
* Update weed/command/mount.go
Co-authored-by: Chris Lu <chrislusf@users.noreply.github.com>
* fix InodeEntry
---------
Co-authored-by: zemul <zhouzemiao@ihuman.com>
Co-authored-by: Chris Lu <chrislusf@users.noreply.github.com>
Diffstat (limited to 'weed/mount/weedfs.go')
| -rw-r--r-- | weed/mount/weedfs.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/weed/mount/weedfs.go b/weed/mount/weedfs.go index 728777e32..7b67a8f32 100644 --- a/weed/mount/weedfs.go +++ b/weed/mount/weedfs.go @@ -42,6 +42,7 @@ type Option struct { CacheDirForRead string CacheSizeMBForRead int64 CacheDirForWrite string + CacheMetaTTlSec int DataCenter string Umask os.FileMode Quota int64 @@ -89,7 +90,7 @@ func NewSeaweedFileSystem(option *Option) *WFS { RawFileSystem: fuse.NewDefaultRawFileSystem(), option: option, signature: util.RandomInt32(), - inodeToPath: NewInodeToPath(util.FullPath(option.FilerMountRootPath)), + inodeToPath: NewInodeToPath(util.FullPath(option.FilerMountRootPath), option.CacheMetaTTlSec), fhMap: NewFileHandleToInode(), dhMap: NewDirectoryHandleToInode(), fhLockTable: util.NewLockTable[FileHandleId](), |
