aboutsummaryrefslogtreecommitdiff
path: root/weed/mount
diff options
context:
space:
mode:
authorchrislu <chris.lu@gmail.com>2024-09-04 01:38:29 -0700
committerchrislu <chris.lu@gmail.com>2024-09-04 01:38:29 -0700
commit18afdb15b6df2835ca600d566997fa7410e1ec9b (patch)
treebaabf17ce97f2533571420ff1a9563406fac8425 /weed/mount
parent7367b976b05bfa69158a60f205dec970c48f50f0 (diff)
downloadseaweedfs-18afdb15b6df2835ca600d566997fa7410e1ec9b.tar.xz
seaweedfs-18afdb15b6df2835ca600d566997fa7410e1ec9b.zip
Revert "weed mount, weed dav add option to force cache"
This reverts commit 7367b976b05bfa69158a60f205dec970c48f50f0.
Diffstat (limited to 'weed/mount')
-rw-r--r--weed/mount/weedfs.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/weed/mount/weedfs.go b/weed/mount/weedfs.go
index 181340ae3..a9fbd9380 100644
--- a/weed/mount/weedfs.go
+++ b/weed/mount/weedfs.go
@@ -41,7 +41,6 @@ type Option struct {
CacheDirForRead string
CacheSizeMBForRead int64
CacheDirForWrite string
- ForceCache bool
DataCenter string
Umask os.FileMode
Quota int64
@@ -96,7 +95,7 @@ func NewSeaweedFileSystem(option *Option) *WFS {
wfs.option.filerIndex = int32(rand.Intn(len(option.FilerAddresses)))
wfs.option.setupUniqueCacheDirectory()
if option.CacheSizeMBForRead > 0 {
- wfs.chunkCache = chunk_cache.NewTieredChunkCache(256, option.getUniqueCacheDirForRead(), option.CacheSizeMBForRead, 1024*1024, option.ForceCache)
+ wfs.chunkCache = chunk_cache.NewTieredChunkCache(256, option.getUniqueCacheDirForRead(), option.CacheSizeMBForRead, 1024*1024)
}
wfs.metaCache = meta_cache.NewMetaCache(path.Join(option.getUniqueCacheDirForRead(), "meta"), option.UidGidMapper,