缓存策略默认不启用MMAP

This commit is contained in:
刘祥超
2024-05-01 12:51:38 +08:00
parent f3ed064c10
commit d6de9b5b09

View File

@@ -175,7 +175,7 @@ func (this *HTTPCachePolicyDAO) CreateDefaultCachePolicy(tx *dbs.Tx, name string
var storageOptions = &serverconfigs.HTTPFileCacheStorage{ var storageOptions = &serverconfigs.HTTPFileCacheStorage{
Dir: "/opt/cache", Dir: "/opt/cache",
EnableMMAP: true, EnableMMAP: false,
MemoryPolicy: &serverconfigs.HTTPCachePolicy{ MemoryPolicy: &serverconfigs.HTTPCachePolicy{
Capacity: &shared.SizeCapacity{ Capacity: &shared.SizeCapacity{
Count: 1, Count: 1,