aboutsummaryrefslogtreecommitdiff
path: root/weed/command/mount_std.go
diff options
context:
space:
mode:
authorzemul <zemul@foxmail.com>2024-12-17 12:19:32 +0800
committerGitHub <noreply@github.com>2024-12-16 20:19:32 -0800
commite77e50886e937cd63175878ece20e0e0dbfc81ff (patch)
tree9e592bce4f483f61baa443cae4351549f208dfe2 /weed/command/mount_std.go
parentb2f26804a06eb7a663d411cd82396ce4195dfa61 (diff)
downloadseaweedfs-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/command/mount_std.go')
-rw-r--r--weed/command/mount_std.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/weed/command/mount_std.go b/weed/command/mount_std.go
index 365a65c6d..110b0a2cf 100644
--- a/weed/command/mount_std.go
+++ b/weed/command/mount_std.go
@@ -236,6 +236,7 @@ func RunMount(option *MountOptions, umask os.FileMode) bool {
CacheDirForRead: *option.cacheDirForRead,
CacheSizeMBForRead: *option.cacheSizeMBForRead,
CacheDirForWrite: cacheDirForWrite,
+ CacheMetaTTlSec: *option.cacheMetaTtlSec,
DataCenter: *option.dataCenter,
Quota: int64(*option.collectionQuota) * 1024 * 1024,
MountUid: uid,