aboutsummaryrefslogtreecommitdiff
path: root/weed/filesys
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2020-08-17 20:15:53 -0700
committerChris Lu <chris.lu@gmail.com>2020-08-17 20:15:53 -0700
commitbe4d42b8e2bffd4a5ff650611f2cfb8c058ca26b (patch)
tree58cd3fc9b901ae282e3354cb5cb1c8be54eb68e7 /weed/filesys
parent0625e63648e8c4a2c4bc9dfe5b8d6011014518ce (diff)
downloadseaweedfs-be4d42b8e2bffd4a5ff650611f2cfb8c058ca26b.tar.xz
seaweedfs-be4d42b8e2bffd4a5ff650611f2cfb8c058ca26b.zip
rename
Diffstat (limited to 'weed/filesys')
-rw-r--r--weed/filesys/wfs.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/weed/filesys/wfs.go b/weed/filesys/wfs.go
index eb7042663..8803c31e0 100644
--- a/weed/filesys/wfs.go
+++ b/weed/filesys/wfs.go
@@ -65,7 +65,7 @@ type WFS struct {
root fs.Node
fsNodeCache *FsCache
- chunkCache *chunk_cache.ChunkCache
+ chunkCache *chunk_cache.TieredChunkCache
metaCache *meta_cache.MetaCache
}
type statsCache struct {
@@ -87,7 +87,7 @@ func NewSeaweedFileSystem(option *Option) *WFS {
cacheDir := path.Join(option.CacheDir, cacheUniqueId)
if option.CacheSizeMB > 0 {
os.MkdirAll(cacheDir, 0755)
- wfs.chunkCache = chunk_cache.NewChunkCache(256, cacheDir, option.CacheSizeMB)
+ wfs.chunkCache = chunk_cache.NewTieredChunkCache(256, cacheDir, option.CacheSizeMB)
grace.OnInterrupt(func() {
wfs.chunkCache.Shutdown()
})